aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-02-19 12:07:48 -0800
committerAndy Clement <aclement@pivotal.io>2019-02-19 12:07:48 -0800
commitb858c788515524c2224165fc615638b75266954f (patch)
treeb82fb4e2d729e23909ac4375a590103851558f67 /org.aspectj.ajdt.core
parent35c4a7d9d8418e100fe9338b7191a05a9f073bdc (diff)
downloadaspectj-b858c788515524c2224165fc615638b75266954f.tar.gz
aspectj-b858c788515524c2224165fc615638b75266954f.zip
improved test harnesses for working with runtime
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java
index e102bd351..eca751182 100644
--- a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java
+++ b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java
@@ -670,6 +670,9 @@ public abstract class AjcTestCase extends TestCase {
vmargs ="";
}
try {
+ if (mp.indexOf("$runtimemodule") != -1) {
+ mp = mp.replace(mp.indexOf("$runtimemodule"),"$runtimemodule".length(),TestUtil.aspectjrtPath(true).toString());
+ }
if (mp.indexOf("$runtime") != -1) {
mp = mp.replace(mp.indexOf("$runtime"),"$runtime".length(),TestUtil.aspectjrtPath().toString());
}
@@ -930,7 +933,7 @@ public abstract class AjcTestCase extends TestCase {
if (-1 == cpIndex) {
String[] newargs = new String[args.length + 2];
newargs[0] = "-classpath";
- newargs[1] = TestUtil.aspectjrtPath().getPath();
+ newargs[1] = TestUtil.aspectjrtPath(false).getPath();
System.arraycopy(args, 0, newargs, 2, args.length);
args = newargs;
cpIndex = 1;