aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-03 17:11:03 +0000
committeracolyer <acolyer>2005-11-03 17:11:03 +0000
commitac15d777ac6d2604317976926007e8bd70c64656 (patch)
tree4768788e8623b23d9a3c7b6abd2e026acb1fff1d
parent3d6a9bfbec123c41596a226598de8e07b83c1fc0 (diff)
downloadaspectj-ac15d777ac6d2604317976926007e8bd70c64656.tar.gz
aspectj-ac15d777ac6d2604317976926007e8bd70c64656.zip
make sure the harness translates path separators for those of us working on superior platforms ;)
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java7
-rw-r--r--testing/newsrc/org/aspectj/testing/CompileSpec.java1
2 files changed, 8 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;
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.