Skip to content

Commit

Permalink
fix: #23
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Dec 10, 2018
1 parent aa78482 commit a370cb1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,12 @@ public static void main(String[] args) {

LinkedList<String> configFiles = new LinkedList<>();

String configFolder = "configs/";
// Get absolute path of the JAR file
RunPipeline referenceClass = new RunPipeline();
File jarPath = new File(referenceClass.getClass().getProtectionDomain().getCodeSource().getLocation().getPath());
// Construct absolute path to configs dir
String configFolder = jarPath.getParentFile().getAbsolutePath()+"/configs/";

configFiles.add(configFolder+"default.properties");


Expand Down Expand Up @@ -695,3 +700,4 @@ public static void main(String[] args) {
}
}
}

0 comments on commit a370cb1

Please sign in to comment.