]> source.dussan.org Git - aspectj.git/commitdiff
make sure the harness translates path separators for those of us working on superior...
authoracolyer <acolyer>
Thu, 3 Nov 2005 17:11:03 +0000 (17:11 +0000)
committeracolyer <acolyer>
Thu, 3 Nov 2005 17:11:03 +0000 (17:11 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java
testing/newsrc/org/aspectj/testing/CompileSpec.java

index 14fad2ef59b22c4f65b754ecbdc69c2a0986dff7..f4a546c5427c1d9f27024da6059003c1416ba9f6 100644 (file)
@@ -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;
index 4cc0f01de8afc7ece9b47122afa1a04130334753..1b50387b028934a37b168e5c738dea39f9298391 100644 (file)
@@ -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.