diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-12-11 21:28:46 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-12-11 21:28:46 +0100 |
commit | be0a9ec2ed0946d372139285ba8e04349dca4ffb (patch) | |
tree | 02e8123d2c839d8d102ddaf9e60d4e8368033cc0 | |
parent | 9cf3c8f8baeaba18ca2d18ad60a6d4c3485c6988 (diff) | |
download | lombok-be0a9ec2ed0946d372139285ba8e04349dca4ffb.tar.gz lombok-be0a9ec2ed0946d372139285ba8e04349dca4ffb.tar.bz2 lombok-be0a9ec2ed0946d372139285ba8e04349dca4ffb.zip |
‘fixed’ ecj testing on JDK9 by requiring that you download the Oracle8 rt.jar. Fortunately, we already had an optional ant task to fetch this. I’ve simply made it less optional.
-rw-r--r-- | build.xml | 2 | ||||
-rw-r--r-- | test/core/src/lombok/RunTestsViaEcj.java | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -503,7 +503,7 @@ ${sourceWarning}</echo> </ivy:compile> </target> - <target name="test-ecj" depends="dist, contrib" unless="tests.skip"> + <target name="test-ecj" depends="dist, contrib, setupJavaOracle8TestEnvironment" unless="tests.skip"> <condition property="ecj.loc" value="lib/ecj9/*" else="lib/ecj8/*"> <equals arg1="${ant.java.version}" arg2="9" /> </condition> diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 775e825c..6ed1e950 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -24,7 +24,6 @@ package lombok; import java.io.File; import java.io.StringWriter; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; @@ -131,7 +130,6 @@ public class RunTestsViaEcj extends AbstractRunTests { private FileSystem createFileSystem(File file) { List<String> classpath = new ArrayList<String>(); - classpath.addAll(Arrays.asList(System.getProperty("sun.boot.class.path").split(File.pathSeparator))); for (Iterator<String> i = classpath.iterator(); i.hasNext();) { if (FileSystem.getClasspath(i.next(), "UTF-8", null) == null) { i.remove(); @@ -139,6 +137,7 @@ public class RunTestsViaEcj extends AbstractRunTests { } if (new File("bin").exists()) classpath.add("bin"); classpath.add("dist/lombok.jar"); + classpath.add("lib/oracleJDK8Environment/rt.jar"); classpath.add("lib/test/commons-logging-commons-logging.jar"); classpath.add("lib/test/org.slf4j-slf4j-api.jar"); classpath.add("lib/test/org.slf4j-slf4j-ext.jar"); |