diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-10 16:06:20 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-10 16:06:20 +0200 |
commit | 81afaef57fba9acbe36c7fe33c0f17cd9e695a0c (patch) | |
tree | c0b1b8b61468a8d9051e267b17fe9a27544d3578 | |
parent | 2f80f9eff4c3b553a6b3ccea31a18c48629d49fc (diff) | |
download | lombok-81afaef57fba9acbe36c7fe33c0f17cd9e695a0c.tar.gz lombok-81afaef57fba9acbe36c7fe33c0f17cd9e695a0c.tar.bz2 lombok-81afaef57fba9acbe36c7fe33c0f17cd9e695a0c.zip |
Updated the buildscript so missing the lombok.patcher project no longer causes errors. Now it causes warnings.
-rw-r--r-- | buildScripts/deps.ant.xml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/buildScripts/deps.ant.xml b/buildScripts/deps.ant.xml index 648685dc..1c6919ee 100644 --- a/buildScripts/deps.ant.xml +++ b/buildScripts/deps.ant.xml @@ -23,24 +23,29 @@ <description>This buildfile is part of projectlombok.org. It responsible for finding, downloading, and building dependencies.</description> - <property name="dir.lombok.patcher" location="../lombok.patcher" /> + <property name="lombok.patcher.dir" location="../lombok.patcher" /> + <available file="${lombok.patcher.dir}/build.xml" property="lombok.patcher.available" /> <target name="buildDeps" description="Builds dependencies" depends="build-lombok.patcher" /> - <target name="-check-lombok.patcher"> - <ant dir="${dir.lombok.patcher}" target="dist" inheritAll="false" /> - <condition property="replace-lombok.patcher"> + <target name="-warn-lombok.patcher" unless="lombok.patcher.available"> + <echo>Skipping lombok.patcher. clone from: http://github.com/rzwitserloot/lombok.patcher</echo> + </target> + + <target name="-check-lombok.patcher" depends="-warn-lombok.patcher" if="lombok.patcher.available"> + <ant dir="${lombok.patcher.dir}" target="dist" inheritAll="false" /> + <condition property="lombok.patcher.replace"> <or> <not><available file="lib/eclipse.agent/lombok-patcher.jar" /></not> <not><uptodate - srcfile="${dir.lombok.patcher}/dist/lombok-patcher.jar" + srcfile="${lombok.patcher.dir}/dist/lombok-patcher.jar" targetfile="lib/eclipse.agent/lombok-patcher.jar" /></not> </or> </condition> </target> - <target name="build-lombok.patcher" depends="-check-lombok.patcher" if="replace-lombok.patcher"> - <copy file="${dir.lombok.patcher}/dist/lombok-patcher.jar" todir="lib/eclipse.agent" /> - <echo>** UPDATED: lib/eclipse.agent/lombok-patcher.jar</echo> + <target name="build-lombok.patcher" depends="-check-lombok.patcher" if="lombok.patcher.replace"> + <copy file="${lombok.patcher.dir}/dist/lombok-patcher.jar" todir="lib/eclipse.agent" /> + <echo level="info">** UPDATED: lib/eclipse.agent/lombok-patcher.jar</echo> </target> </project> |