aboutsummaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorSander Koning <askoning@gmail.com>2017-02-22 10:18:33 +0100
committerSander Koning <askoning@gmail.com>2017-02-22 10:18:33 +0100
commitea9fbb426f60bd1b7c3dea2b0485eae8eaafedda (patch)
tree9b1f88c078d5ba9d4a0ae32930ed24cc78dad144 /build.xml
parent233400eacba84ec33bfba5207481a6f5ec00aa65 (diff)
downloadlombok-ea9fbb426f60bd1b7c3dea2b0485eae8eaafedda.tar.gz
lombok-ea9fbb426f60bd1b7c3dea2b0485eae8eaafedda.tar.bz2
lombok-ea9fbb426f60bd1b7c3dea2b0485eae8eaafedda.zip
Use already downloaded rt-openjdk6.jar if it exists.
This allows builds to run without a network connection.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/build.xml b/build.xml
index 654c23ea..44f09de8 100644
--- a/build.xml
+++ b/build.xml
@@ -28,7 +28,8 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<property name="build.compiler" value="javac1.6" />
<property name="ivy.retrieve.pattern" value="lib/[conf]/[organisation]-[artifact].[ext]" />
<available file="lib/ivyplusplus.jar" property="ivyplusplus.available" />
-
+ <available file="lib/openJDK6Environment/rt-openjdk6.jar" property="rt-openjdk6.available" />
+
<path id="build.path">
<fileset dir="lib/build">
<include name="*.jar" />
@@ -101,8 +102,8 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
<ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="contrib, ecj7, ecj8" />
<ivy:retrieve />
</target>
-
- <target name="ensureBuildDeps" depends="config-ivy">
+
+ <target name="ensureBuildDeps" depends="config-ivy" unless="rt-openjdk6.available">
<mkdir dir="lib/openJDK6Environment" />
<get src="https://projectlombok.org/ivyrepo/langtools/rt-openjdk6.jar" dest="lib/openJDK6Environment/rt-openjdk6.jar" verbose="true" usetimestamp="true" />
<ivy:resolve file="buildScripts/ivy.xml" refresh="true" conf="build, javac7" />