Skip to content

Commit

Permalink
Merge pull request #1 from sharwell/path-separator
Browse files Browse the repository at this point in the history
Use File.pathSeparator instead of ":" to support testing on Windows
  • Loading branch information
ericvergnaud committed Oct 6, 2014
2 parents ef8570c + cd509b7 commit ccbfcc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/test/org/antlr/v4/js/node/test/BaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public String execModule(String fileName) {
String inputPath = new File(new File(tmpdir), "input").getAbsolutePath();
try {
ProcessBuilder builder = new ProcessBuilder( nodejsPath, modulePath, inputPath );
builder.environment().put("NODE_PATH",runtimePath + ":" + tmpdir);
builder.environment().put("NODE_PATH",runtimePath + File.pathSeparator + tmpdir);
builder.directory(new File(tmpdir));
Process process = builder.start();
StreamVacuum stdoutVacuum = new StreamVacuum(process.getInputStream());
Expand Down

0 comments on commit ccbfcc2

Please sign in to comment.