diff options
author | aclement <aclement> | 2006-05-12 11:44:29 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-12 11:44:29 +0000 |
commit | 7a955f0f8f2fcd843e8c796e3f1ac9136fd77d82 (patch) | |
tree | 4a21815df9a45a645a2f3444187803cb2ca6d5ae | |
parent | 3ca976f0ce48a49cdcef98b7f72ce2ce23b9ef4d (diff) | |
download | aspectj-7a955f0f8f2fcd843e8c796e3f1ac9136fd77d82.tar.gz aspectj-7a955f0f8f2fcd843e8c796e3f1ac9136fd77d82.zip |
longhand of recent Java API *sigh*
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/AjcTestCase.java | 9 |
1 files changed, 8 insertions, 1 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 3d70759c8..f656a1c21 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 @@ -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; } /** |