Browse Source

make sure the harness translates path separators for those of us working on superior platforms ;)

tags/V1_5_0RC1
acolyer 18 years ago
parent
commit
ac15d777ac

+ 7
- 0
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java View 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;

+ 1
- 0
testing/newsrc/org/aspectj/testing/CompileSpec.java View 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.

Loading…
Cancel
Save