Permalink
Browse files

Path changed in erl.cmd. Compiler now uses PathSeparator for the curr…

…ent platform.
  • Loading branch information...
1 parent 64e400d commit 2b02b9d5120df49d4c12228bee8ee1044d5f53fd Ulrik Skyt committed Mar 5, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 erl.cmd
  2. +1 −1 src/main/java/erjang/beam/Compiler.java
View
@@ -1,6 +1,6 @@
@echo off
-IF "x%OTPROOT%" == "x" SET OTPROOT="C:\Program Files\erl7.5.7"
+IF "x%OTPROOT%" == "x" SET OTPROOT="C:/Program Files/erl5.7.5"
java -ea -cp erjang-0.1.jar ^
-Derj.threads=1 ^
@@ -363,7 +363,7 @@ private static File findBeamFile(String module) {
}
private static void add(ArrayList<File> out, String path) {
- for (String s : path.split(":")) {
+ for (String s : path.split(File.pathSeparator)) {
File elem = new File(s);
if (elem.exists() && elem.isDirectory()) {
out.add(elem);

0 comments on commit 2b02b9d

Please sign in to comment.