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 56fe008 commit 1b5f97fCopy full SHA for 1b5f97f
src/main/java/io/github/plastix/Params.java
@@ -19,7 +19,8 @@ public void loadParams() {
19
Properties properties = new Properties();
20
InputStream inputStream;
21
try {
22
- inputStream = new FileInputStream("src/main/resources/params.properties");
+ String paramPath = getClass().getResource("/params.properties").getPath();
23
+ inputStream = new FileInputStream(paramPath);
24
properties.load(inputStream);
25
} catch(FileNotFoundException e) {
26
System.out.println("No params file!");
0 commit comments