From: acolyer Date: Thu, 3 Nov 2005 17:11:03 +0000 (+0000) Subject: make sure the harness translates path separators for those of us working on superior... X-Git-Tag: V1_5_0RC1~263 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac15d777ac6d2604317976926007e8bd70c64656;p=aspectj.git make sure the harness translates path separators for those of us working on superior platforms ;) --- 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; diff --git a/testing/newsrc/org/aspectj/testing/CompileSpec.java b/testing/newsrc/org/aspectj/testing/CompileSpec.java index 4cc0f01de..1b50387b0 100644 --- a/testing/newsrc/org/aspectj/testing/CompileSpec.java +++ b/testing/newsrc/org/aspectj/testing/CompileSpec.java @@ -134,6 +134,7 @@ public class CompileSpec implements ITestStep { */ public void setInpath(String inpath) { this.inpath = inpath.replace(',',File.pathSeparatorChar); + this.inpath = inpath.replace(';',File.pathSeparatorChar); } /** * @return Returns the options.