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 /ajdoc | |
parent | fa03c791aeb9a4d16c9f0d87e2fe6702e08e0411 (diff) | |
download | aspectj-92a9d99937725875881b691085fdbf3332917f6e.tar.gz aspectj-92a9d99937725875881b691085fdbf3332917f6e.zip |
Fix classpath for tests on Java9
Diffstat (limited to 'ajdoc')
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/AjdocTestCase.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/AjdocTestCase.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/AjdocTestCase.java index 2db299f37..d75f8cb64 100644 --- a/ajdoc/testsrc/org/aspectj/tools/ajdoc/AjdocTestCase.java +++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/AjdocTestCase.java @@ -19,6 +19,7 @@ import junit.framework.AssertionFailedError; import junit.framework.TestCase; import org.aspectj.tools.ajc.Ajc; +import org.aspectj.util.LangUtil; /** * This class is the super class of all Ajdoc tests. It creates a sandbox directory and provides utility methods for copying over @@ -202,7 +203,12 @@ public class AjdocTestCase extends TestCase { args[1] = "-source"; args[2] = sourceLevel; args[3] = "-classpath"; - args[4] = AjdocTests.ASPECTJRT_PATH.getPath(); + StringBuilder classpath = new StringBuilder(); + if (LangUtil.is19VMOrGreater()) { + classpath.append(LangUtil.getJrtFsFilePath()).append(File.pathSeparator); + } + classpath.append(AjdocTests.ASPECTJRT_PATH.getPath()); + args[4] = classpath.toString(); args[5] = "-d"; args[6] = getAbsolutePathOutdir(); // args[7] = "-Xset:minimalModel=false"; |