aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-19 03:01:59 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-19 03:17:38 +0100
commit9498849d692040b8a57bc9f3332fa46f4b4c3665 (patch)
treea323eeb062f9e07f70d844963321202e9988bec0
parent9b211af8be36c67212999063134bc9dfc266f7b9 (diff)
downloadlombok-9498849d692040b8a57bc9f3332fa46f4b4c3665.tar.gz
lombok-9498849d692040b8a57bc9f3332fa46f4b4c3665.tar.bz2
lombok-9498849d692040b8a57bc9f3332fa46f4b4c3665.zip
[testing] Fixing running older tests.
the new formatter is nice, but needed to be compile with 1.6, otherwise running junit on older VMs doesn't work.
-rw-r--r--buildScripts/ivy.xml1
-rw-r--r--buildScripts/tests.ant.xml5
2 files changed, 4 insertions, 2 deletions
diff --git a/buildScripts/ivy.xml b/buildScripts/ivy.xml
index 7994af89..12dd2c5b 100644
--- a/buildScripts/ivy.xml
+++ b/buildScripts/ivy.xml
@@ -39,6 +39,7 @@
<dependency org="org.projectlombok" name="lombok.patcher" rev="0.40" conf="build,stripe->default" />
<dependency org="zwitserloot.com" name="cmdreader" rev="1.2" conf="build,stripe->runtime" />
<dependency org="org.apache.ant" name="ant" rev="1.10.5" conf="build->default" />
+ <dependency org="org.apache.ant" name="ant-junit" rev="1.10.5" conf="build->default" />
<!-- test deps -->
<dependency org="junit" name="junit" rev="4.8.2" conf="test->default; sources" />
diff --git a/buildScripts/tests.ant.xml b/buildScripts/tests.ant.xml
index 98bc32e7..cdef471f 100644
--- a/buildScripts/tests.ant.xml
+++ b/buildScripts/tests.ant.xml
@@ -26,9 +26,10 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn
<target name="test.formatter.compile" depends="deps">
<mkdir dir="build/ant" />
- <javac includeantruntime="true" srcdir="src/support" includes="**/SimpleTestFormatter.java" destdir="build/ant">
+ <ivy:compile ecj="true" srcdir="src/support" includes="**/SimpleTestFormatter.java" destdir="build/ant" source="1.6" target="1.6">
+ <classpath refid="cp.build" />
<classpath refid="cp.test" />
- </javac>
+ </ivy:compile>
</target>
<target name="test.compile" depends="deps, compile" description="compiles the tests" unless="skip.tests">