Browse Source

longhand of recent Java API *sigh*

tags/V1_5_2rc1
aclement 18 years ago
parent
commit
7a955f0f8f

+ 8
- 1
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java View File

@@ -625,7 +625,14 @@ public class AjcTestCase extends TestCase {
}

private String substituteSandbox(String classpath) {
return classpath.replace("$sandbox", ajc.getSandboxDirectory().getAbsolutePath());
// the longhand form of the non 1.3 API: classpath.replace("$sandbox", ajc.getSandboxDirectory().getAbsolutePath());
while (classpath.indexOf("$sandbox")!=-1) {
int pos = classpath.indexOf("$sandbox");
String firstbit = classpath.substring(0,pos);
String endbit = classpath.substring(pos+8);
classpath = firstbit+ ajc.getSandboxDirectory().getAbsolutePath()+endbit;
}
return classpath;
}
/**

Loading…
Cancel
Save