diff options
author | acolyer <acolyer> | 2005-11-03 17:11:03 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-11-03 17:11:03 +0000 |
commit | ac15d777ac6d2604317976926007e8bd70c64656 (patch) | |
tree | 4768788e8623b23d9a3c7b6abd2e026acb1fff1d /org.aspectj.ajdt.core/testsrc | |
parent | 3d6a9bfbec123c41596a226598de8e07b83c1fc0 (diff) | |
download | aspectj-ac15d777ac6d2604317976926007e8bd70c64656.tar.gz aspectj-ac15d777ac6d2604317976926007e8bd70c64656.zip |
make sure the harness translates path separators for those of us working on superior platforms ;)
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java index 14fad2ef5..f4a546c54 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java @@ -627,6 +627,7 @@ public class AjcTestCase extends TestCase { int cpIndex = -1; boolean hasruntime = false; for (int i = 0; i < args.length-1; i++) { + args[i] = adaptToPlatform(args[i]); if ("-classpath".equals(args[i])) { cpIndex = i; String next = args[i+1]; @@ -652,6 +653,12 @@ public class AjcTestCase extends TestCase { } return args; } + + private String adaptToPlatform(String s) { + String ret = s.replace(';',File.pathSeparatorChar); + ret = ret.replace(':',File.pathSeparatorChar); + return ret; + } private List copyAll(List in) { if (in == Collections.EMPTY_LIST) return in; |