diff options
author | Andy Clement <aclement@pivotal.io> | 2016-06-27 15:49:09 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-06-27 15:49:09 -0700 |
commit | 92a9d99937725875881b691085fdbf3332917f6e (patch) | |
tree | cff91eca5a63f1db790fc02244db48b2cbf747d4 /testing | |
parent | fa03c791aeb9a4d16c9f0d87e2fe6702e08e0411 (diff) | |
download | aspectj-92a9d99937725875881b691085fdbf3332917f6e.tar.gz aspectj-92a9d99937725875881b691085fdbf3332917f6e.zip |
Fix classpath for tests on Java9
Diffstat (limited to 'testing')
-rw-r--r-- | testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java b/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java index 6ab5a386b..42a2063a4 100644 --- a/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java +++ b/testing/testsrc/org/aspectj/testing/taskdefs/AjcTaskCompileCommandTest.java @@ -44,7 +44,12 @@ public class AjcTaskCompileCommandTest extends TestCase { list.add("-d"); list.add(getClassesDir().getAbsolutePath()); list.add("-classpath"); - list.add(Globals.F_aspectjrt_jar.getAbsolutePath()); + StringBuilder classpath = new StringBuilder(); + classpath.append(Globals.F_aspectjrt_jar.getAbsolutePath()); + if (LangUtil.is19VMOrGreater()) { + classpath.append(File.pathSeparator).append(LangUtil.getJrtFsFilePath()); + } + list.add(classpath.toString()); } static boolean doWait(IMessageHolder holder, int seconds, int timeout) { |