We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1ed97 commit 51914bfCopy full SHA for 51914bf
src/org/csource/common/IniFileReader.java
@@ -129,9 +129,16 @@ public String[] getValues(String name)
129
private void loadFromFile(String confFilePath) throws IOException {
130
InputStream in = null;
131
try {
132
+ // 优先从文件系统路径加载
133
+ if (new File(confFilePath).exists()) {
134
+ in = new FileInputStream(confFilePath);
135
+ //System.out.println("loadFrom...file path done");
136
+ }
137
// 从类路径加载
- in = classLoader().getResourceAsStream(confFilePath);
- //System.out.println("loadFrom...class path done");
138
+ else {
139
+ in = classLoader().getResourceAsStream(confFilePath);
140
+ //System.out.println("loadFrom...class path done");
141
142
readToParamTable(in);
143
} catch (Exception ex) {
144
ex.printStackTrace();
0 commit comments