Skip to content

Commit

Permalink
To prevent issues when running JGAAP on Windows, replace colons with …
Browse files Browse the repository at this point in the history
…dashes in names of files outputted by the Experiment Engine.
  • Loading branch information
DavidBerdik committed Oct 17, 2018
1 parent 3072505 commit ea2fbe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/jgaap/backend/ExperimentEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public static String fileNameGen(List<String> canons, String[] events, String an
}
String eventName = eventNameBuilder.toString().trim();
String path = JGAAPConstants.JGAAP_TMPDIR + canonName.replace("/", "\\/") + JGAAPConstants.separator
+ eventName.trim().replace("/", "\\/").replace("|","_") + JGAAPConstants.separator + analysis.trim().replace("/", "\\/") + JGAAPConstants.separator;
+ eventName.trim().replace("/", "\\/").replace("|","_").replace(":", "-") + JGAAPConstants.separator
+ analysis.trim().replace("/", "\\/") + JGAAPConstants.separator;
File file = new File(path);
boolean newDirs = file.mkdirs();
if (!newDirs) {
Expand Down

0 comments on commit ea2fbe0

Please sign in to comment.