aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-07-28 03:10:34 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-07-28 03:10:34 +0200
commit4dbe3802fda3b317bb82bca80d7c69f58b239cfd (patch)
tree03ee93afc636ae82ed922a9150b6438dead0ee5b /build.xml
parente2af5ed0c7786e01bec861f21f2e5ec3bc5ea33f (diff)
downloadlombok-4dbe3802fda3b317bb82bca80d7c69f58b239cfd.tar.gz
lombok-4dbe3802fda3b317bb82bca80d7c69f58b239cfd.tar.bz2
lombok-4dbe3802fda3b317bb82bca80d7c69f58b239cfd.zip
more progress. This one is less JDK8 compatible, but
it has major refactorings to make JDK6-8 support possibly with much prettier code.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml24
1 files changed, 14 insertions, 10 deletions
diff --git a/build.xml b/build.xml
index 2ed0ba71..b44d6673 100644
--- a/build.xml
+++ b/build.xml
@@ -332,7 +332,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
</copy>
</target>
- <target name="setupJava6TestEnvironment" description="Sets up the test so that 'ant test' will test against OpenJDK6.">
+ <target name="setupJavaOpenJDK6TestEnvironment" description="Sets up the test so that 'ant test' will test against OpenJDK6.">
<mkdir dir="lib/openJDK6Environment" />
<get src="http://projectlombok.org/ivyrepo/langtools/javac-1.6.0.18.jar" dest="lib/openJDK6Environment/javac6.jar" verbose="true" usetimestamp="true" />
<get src="http://projectlombok.org/ivyrepo/langtools/rt-openjdk6.jar" dest="lib/openJDK6Environment/rt-openjdk6.jar" verbose="true" usetimestamp="true" />
@@ -345,7 +345,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<antcall target="-createEclipseLaunchForTestEnvironmentIfEclipseProject" />
</target>
- <target name="setupJava7TestEnvironment" description="Sets up the test so that 'ant test' will test against OpenJDK7.">
+ <target name="setupJavaOpenJDK7TestEnvironment" description="Sets up the test so that 'ant test' will test against OpenJDK7.">
<mkdir dir="lib/openJDK7Environment" />
<get src="http://projectlombok.org/ivyrepo/langtools/javac-1.7.0.jar" dest="lib/openJDK7Environment/javac7.jar" verbose="true" usetimestamp="true" />
<get src="http://projectlombok.org/ivyrepo/langtools/rt-openjdk7.jar" dest="lib/openJDK7Environment/rt-openjdk7.jar" verbose="true" usetimestamp="true" />
@@ -360,9 +360,11 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<target name="setupJavaOracle7TestEnvironment" description="Sets up the test so that 'ant test' will test against OpenJDK7.">
<mkdir dir="lib/oracleJDK7Environment" />
+ <get src="http://projectlombok.org/ivyrepo/langtools/oracle-jdk7-tools.jar" dest="lib/oracleJDK7Environment/tools.jar" verbose="true" usetimestamp="true" />
+ <get src="http://projectlombok.org/ivyrepo/langtools/oracle-jdk7-rt.jar" dest="lib/oracleJDK7Environment/rt.jar" verbose="true" usetimestamp="true" />
<propertyfile file="testenvironment.properties">
- <entry key="test.location.javac" value="lib/oracleJDK7Environment/tools-jdk7.jar" />
- <entry key="test.location.bootclasspath" value="lib/oracleJDK7Environment/rt-oraclejdk7.jar" />
+ <entry key="test.location.javac" value="lib/oracleJDK7Environment/tools.jar" />
+ <entry key="test.location.bootclasspath" value="lib/oracleJDK7Environment/rt.jar" />
<entry key="test.location.name" value="OracleJDK7" />
</propertyfile>
<echo>Tests will now run against Oracle JDK7</echo>
@@ -371,11 +373,11 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<target name="setupJavaOracle8TestEnvironment" description="Sets up the test so that 'ant test' will test against OpenJDK8.">
<mkdir dir="lib/oracleJDK8Environment" />
- <!--get src="http://projectlombok.org/ivyrepo/langtools/javac-1.7.0.jar" dest="lib/openJDK7Environment/javac7.jar" verbose="true" usetimestamp="true" /-->
- <!--get src="http://projectlombok.org/ivyrepo/langtools/rt-openjdk7.jar" dest="lib/openJDK7Environment/rt-openjdk7.jar" verbose="true" usetimestamp="true" /-->
+ <get src="http://projectlombok.org/ivyrepo/langtools/oracle-jdk8-tools.jar" dest="lib/oracleJDK8Environment/tools.jar" verbose="true" usetimestamp="true" />
+ <get src="http://projectlombok.org/ivyrepo/langtools/oracle-jdk8-rt.jar" dest="lib/oracleJDK8Environment/rt.jar" verbose="true" usetimestamp="true" />
<propertyfile file="testenvironment.properties">
- <entry key="test.location.javac" value="lib/oracleJDK8Environment/tools-jdk8.jar" />
- <entry key="test.location.bootclasspath" value="lib/oracleJDK8Environment/rt-oraclejdk8.jar" />
+ <entry key="test.location.javac" value="lib/oracleJDK8Environment/tools.jar" />
+ <entry key="test.location.bootclasspath" value="lib/oracleJDK8Environment/rt.jar" />
<entry key="test.location.name" value="OracleJDK8" />
</propertyfile>
<echo>Tests will now run against Oracle JDK8</echo>
@@ -390,8 +392,10 @@ Eventually, this environment concept will be extended to also include an ecj and
You can let this ant script set them up for you:
-* ant setupJava6TestEnvironment
-* ant setupJava7TestEnvironment
+* ant setupJavaOpenJDK6TestEnvironment
+* ant setupJavaOpenJDK7TestEnvironment
+* ant setupJavaOracle7TestEnvironment
+* ant setupJavaOracle8TestEnvironment
These will set up test environments based on OpenJDK6 and OpenJDK7, and download all required files automatically. This will be a relatively large download. You can switch by running this command again; the downloads are cached so switching is fast.