From 4cfb4b37ad16cc21f23e3620538893e36aa33eae Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 30 Apr 2014 23:26:24 +0200 Subject: some pretty significant changes to the build system, to try and add testing against ecj8 to the lineup, and to force compilation with the bootstrap classpath of JDK6 so that we won't accidentally add deps on things that JVM6es don't have. --- build.xml | 24 +++++++++++++++++----- .../ivy-repo/org.eclipse.custom-ecj-I20140430.xml | 14 +++++++++++++ buildScripts/ivy.xml | 6 ++++-- src/core/lombok/bytecode/AsmUtil.java | 1 - test/core/src/lombok/RunTestsViaEcj.java | 4 ++++ 5 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 buildScripts/ivy-repo/org.eclipse.custom-ecj-I20140430.xml diff --git a/build.xml b/build.xml index b9a30642..12f19ccb 100644 --- a/build.xml +++ b/build.xml @@ -99,11 +99,13 @@ the common tasks and can be called on to run the main aspects of all the sub-scr - + + + @@ -143,15 +145,18 @@ the common tasks and can be called on to run the main aspects of all the sub-scr We re-create the file at the end of this target. --> + + + @@ -159,6 +164,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr + @@ -171,6 +177,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr + @@ -181,6 +188,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr + @@ -396,7 +404,7 @@ ${sourceWarning} - + @@ -434,6 +442,7 @@ ${sourceWarning} + @@ -447,6 +456,7 @@ ${sourceWarning} + @@ -460,6 +470,7 @@ ${sourceWarning} + @@ -473,6 +484,7 @@ ${sourceWarning} + @@ -480,7 +492,7 @@ ${sourceWarning} - + ERROR: No test environment set up. You need to set up a test environment, which consists of a version of javac, and a JRE runtime classpath ('rt.jar'). @@ -498,17 +510,19 @@ These will set up test environments based on OpenJDK6 and OpenJDK7, and download You can also create your own by writing a 'testenvironment.properties' file. The relevant properties are: * test.location.javac = /path/to/javac6.jar +* test.location.ecj = /path/to/ecj6.jar * test.location.bootclasspath = /path/to/rt.jar +* test.location.name = RandomUsefulNameToIdentifyThisSetup - + - + diff --git a/buildScripts/ivy-repo/org.eclipse.custom-ecj-I20140430.xml b/buildScripts/ivy-repo/org.eclipse.custom-ecj-I20140430.xml new file mode 100644 index 00000000..8ba65a2a --- /dev/null +++ b/buildScripts/ivy-repo/org.eclipse.custom-ecj-I20140430.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/buildScripts/ivy.xml b/buildScripts/ivy.xml index d7977101..a26f4751 100644 --- a/buildScripts/ivy.xml +++ b/buildScripts/ivy.xml @@ -9,7 +9,8 @@ - + + @@ -35,7 +36,8 @@ - + + diff --git a/src/core/lombok/bytecode/AsmUtil.java b/src/core/lombok/bytecode/AsmUtil.java index 6ac1dac4..26e5af1f 100644 --- a/src/core/lombok/bytecode/AsmUtil.java +++ b/src/core/lombok/bytecode/AsmUtil.java @@ -29,7 +29,6 @@ import org.objectweb.asm.Opcodes; import org.objectweb.asm.commons.JSRInlinerAdapter; class AsmUtil { - private AsmUtil() { throw new UnsupportedOperationException(); } diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java index 2734eb43..8d1a8278 100644 --- a/test/core/src/lombok/RunTestsViaEcj.java +++ b/test/core/src/lombok/RunTestsViaEcj.java @@ -84,6 +84,10 @@ public class RunTestsViaEcj extends AbstractRunTests { @Override public boolean proceedOnErrors() { return false; } + + @Override public boolean ignoreAllErrors() { + return false; + } }; } -- cgit