Skip to content

Commit

Permalink
Merge pull request #16 from neo0820/new
Browse files Browse the repository at this point in the history
fixed:解决因为extension.properties文件不存在导致无法加载插件的问题。
  • Loading branch information
stateIs0 authored Dec 15, 2023
2 parents 24f4c64 + 871c97b commit 14d8491
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ private static Properties loadProperties(String file, String propertiesFileName)
properties.load(inputStream);
}
} else {
throw new IOException("Properties file not found: " + propertiesFileName);
if(propertiesFileName.equals("extension.properties")) {
return properties;
}
else {
throw new IOException("Properties file not found: " + propertiesFileName);
}
}
} catch (IOException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit 14d8491

Please sign in to comment.