diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-13 15:15:53 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-13 15:15:53 +0200 |
commit | 70a0f6e84cf7b03c7edf444d643025357c945cad (patch) | |
tree | 6749f056380145fa1c0844e2be8f00cee8600759 /buildScripts/deps | |
parent | a602d2f899ea4538429f21d9958ac3e82643f3f8 (diff) | |
download | lombok-70a0f6e84cf7b03c7edf444d643025357c945cad.tar.gz lombok-70a0f6e84cf7b03c7edf444d643025357c945cad.tar.bz2 lombok-70a0f6e84cf7b03c7edf444d643025357c945cad.zip |
Pretty big revamp of the build script system. Downloading dependencies is now done automatically by this script, which also means that e.g. lombok-patcher.jar no longer needs to be checked in.
Diffstat (limited to 'buildScripts/deps')
-rw-r--r-- | buildScripts/deps/eclipse-debug-target.template | 34 | ||||
-rw-r--r-- | buildScripts/deps/eclipse-debugging.ant.xml | 253 | ||||
-rw-r--r-- | buildScripts/deps/lombok-patcher.ant.xml | 158 |
3 files changed, 445 insertions, 0 deletions
diff --git a/buildScripts/deps/eclipse-debug-target.template b/buildScripts/deps/eclipse-debug-target.template new file mode 100644 index 00000000..99e4237c --- /dev/null +++ b/buildScripts/deps/eclipse-debug-target.template @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench"> +<booleanAttribute key="append.args" value="true"/> +<booleanAttribute key="askclear" value="false"/> +<booleanAttribute key="automaticAdd" value="true"/> +<booleanAttribute key="automaticValidate" value="false"/> +<stringAttribute key="bootstrap" value=""/> +<stringAttribute key="checked" value="[NONE]"/> +<booleanAttribute key="clearConfig" value="false"/> +<booleanAttribute key="clearws" value="false"/> +<booleanAttribute key="clearwslog" value="true"/> +<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Lombokized DebugEclipse"/> +<booleanAttribute key="default" value="true"/> +<booleanAttribute key="includeOptional" value="true"/> +<stringAttribute key="location" value="${project_loc:lombok}/debug/workspace"/> +<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.pde.ui.launcher.PDESourceLookupDirector"/> +<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;javaProject name=&quot;lombok.patcher&quot;/&gt;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;default/&gt;&#10;" typeId="org.eclipse.debug.core.containerType.default"/> </sourceContainers> </sourceLookupDirector> "/> +<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> +<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> +</listAttribute> +<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> +<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/> +<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx512m @START_ON_FIRST_THREAD@ -Dorg.eclipse.swt.internal.carbon.smallFonts -javaagent:${project_loc:lombok}/dist/lombok.jar -Xbootclasspath/a:${project_loc:lombok}/dist/lombok.jar -Dlombok.patcher.patchDebugDir=${project_loc:lombok}/debug/patchedClasses"/> +<stringAttribute key="pde.version" value="3.3"/> +<stringAttribute key="product" value="org.eclipse.sdk.ide"/> +<booleanAttribute key="show_selected_only" value="false"/> +<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/> +<booleanAttribute key="tracing" value="false"/> +<booleanAttribute key="useDefaultConfig" value="true"/> +<booleanAttribute key="useDefaultConfigArea" value="true"/> +<booleanAttribute key="useProduct" value="true"/> +<booleanAttribute key="usefeatures" value="false"/> +</launchConfiguration> diff --git a/buildScripts/deps/eclipse-debugging.ant.xml b/buildScripts/deps/eclipse-debugging.ant.xml new file mode 100644 index 00000000..16b4361c --- /dev/null +++ b/buildScripts/deps/eclipse-debugging.ant.xml @@ -0,0 +1,253 @@ +<!-- + Copyright © 2009 Reinier Zwitserloot and Roel Spilker. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +--> +<project name="lombok-deps-lombok-patcher" basedir="../.." default="install"> + <description> +This buildfile is part of projectlombok.org. It responsible for downloading, updating, and setting up the eclipse modules that are useful to have when working on lombok's eclipse integration. It's optional. + </description> + + <property name="repository.eclipse.org-eclipse" value=":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse" /> + <property name="repository.eclipse.org-rt" value=":pserver:anonymous@dev.eclipse.org/cvsroot/rt" /> + <property name="eclipse.org.contrib.base" location=".." /> + + <target name="install-silent" depends="-check-eclipse.org, + -force-eclipse.debug.target, install-eclipse.debug.target, update-eclipse.debug.target, + -force-org.eclipse.jdt.core, checkout-org.eclipse.jdt.core, update-org.eclipse.jdt.core, + -force-org.eclipse.jdt.ui, checkout-org.eclipse.jdt.ui, update-org.eclipse.jdt.ui, + -force-org.eclipse.core.runtime, checkout-org.eclipse.core.runtime, update-org.eclipse.core.runtime, + -force-org.eclipse.ltk.core.refactoring, checkout-org.eclipse.ltk.core.refactoring, update-org.eclipse.ltk.core.refactoring, + -force-org.eclipse.equinox, checkout-org.eclipse.equinox, update-org.eclipse.equinox" /> + + <target name="install" depends="-check-eclipse.org, + -ask-eclipse.debug.target, install-eclipse.debug.target, update-eclipse.debug.target, + -ask-org.eclipse.jdt.core, checkout-org.eclipse.jdt.core, update-org.eclipse.jdt.core, + -ask-org.eclipse.jdt.ui, checkout-org.eclipse.jdt.ui, update-org.eclipse.jdt.ui, + -ask-org.eclipse.core.runtime, checkout-org.eclipse.core.runtime, update-org.eclipse.core.runtime, + -ask-org.eclipse.ltk.core.refactoring, checkout-org.eclipse.ltk.core.refactoring, update-org.eclipse.ltk.core.refactoring, + -ask-org.eclipse.equinox, checkout-org.eclipse.equinox, update-org.eclipse.equinox" /> + + <target name="-force-eclipse.debug.target" unless="eclipse.debug.target.available"> + <property name="eclipse.debug.target.create" value="true" /> + </target> + + <target name="-ask-eclipse.debug.target" unless="eclipse.debug.target.available"> + <input validargs="n,N,no,No,NO,y,Y,yes,Yes,YES" defaultvalue="no" addproperty="eclipse.debug.target.response"> +Do you want me to create an eclipse debug target so you can launch a second eclipse, lombok-ized, in the eclipse debugger? + </input> + <condition property="eclipse.debug.target.create"> + <matches string="${eclipse.debug.target.response}" casesensitive="false" pattern="^y(es)?$" /> + </condition> + </target> + + <target name="-force-org.eclipse.jdt.core" unless="org.eclipse.jdt.core.available"> + <property name="org.eclipse.jdt.core.checkout" value="true" /> + </target> + + <target name="-ask-org.eclipse.jdt.core" unless="org.eclipse.jdt.core.available"> + <input validargs="n,N,no,No,NO,y,Y,yes,Yes,YES" defaultvalue="no" addproperty="org.eclipse.jdt.core.response"> +Do you want me to grab from CVS the 3.5 version of org.eclipse.jdt.core? +Lombok integrates with this eclipse module often, and you should grab it if you're going to work on lombok's eclipse integration.</input> + <condition property="org.eclipse.jdt.core.checkout"> + <matches string="${org.eclipse.jdt.core.response}" casesensitive="false" pattern="^y(es)?$" /> + </condition> + </target> + + <target name="-force-org.eclipse.jdt.ui" unless="org.eclipse.jdt.ui.available"> + <property name="org.eclipse.jdt.ui.checkout" value="true" /> + </target> + + <target name="-ask-org.eclipse.jdt.ui" unless="org.eclipse.jdt.ui.available"> + <input validargs="n,N,no,No,NO,y,Y,yes,Yes,YES" defaultvalue="no" addproperty="org.eclipse.jdt.ui.response"> +Do you want me to grab from CVS the 3.5 version of org.eclipse.jdt.ui? +Lombok integrates with this eclipse module often, and you should grab it if you're going to work on lombok's eclipse integration.</input> + <condition property="org.eclipse.jdt.ui.checkout"> + <matches string="${org.eclipse.jdt.ui.response}" casesensitive="false" pattern="^y(es)?$" /> + </condition> + </target> + + <target name="-force-org.eclipse.core.runtime" unless="org.eclipse.core.runtime.available"> + <property name="org.eclipse.core.runtime.checkout" value="true" /> + </target> + + <target name="-ask-org.eclipse.core.runtime" unless="org.eclipse.core.runtime.available"> + <input validargs="n,N,no,No,NO,y,Y,yes,Yes,YES" defaultvalue="no" addproperty="org.eclipse.core.runtime.response"> +Do you want me to grab from CVS the 3.5 version of org.eclipse.core.runtime? +Interacting with the filer and messager (for errors and warnings) requires core.runtime, as well as interacting with modules. +You may not need it unless you're going to work on those areas. + </input> + <condition property="org.eclipse.core.runtime.checkout"> + <matches string="${org.eclipse.core.runtime.response}" casesensitive="false" pattern="^y(es)?$" /> + </condition> + </target> + + <target name="-force-org.eclipse.ltk.core.refactoring" unless="org.eclipse.ltk.core.refactoring.available"> + <property name="org.eclipse.ltk.core.refactoring.checkout" value="true" /> + </target> + + <target name="-ask-org.eclipse.ltk.core.refactoring" unless="org.eclipse.ltk.core.refactoring.available"> + <input validargs="n,N,no,No,NO,y,Y,yes,Yes,YES" defaultvalue="no" addproperty="org.eclipse.ltk.core.refactoring.response"> +Do you want me to grab from CVS the 3.5 version of org.eclipse.ltk.core.refactoring? +Unless you're going to work with lombok's patching of the refactor scripts, you won't need it. + </input> + <condition property="org.eclipse.ltk.core.refactoring.checkout"> + <matches string="${org.eclipse.ltk.core.refactoring.response}" casesensitive="false" pattern="^y(es)?$" /> + </condition> + </target> + + <target name="-force-org.eclipse.equinox" unless="org.eclipse.equinox.available"> + <property name="org.eclipse.equinox.checkout" value="true" /> + </target> + + <target name="-ask-org.eclipse.equinox" unless="org.eclipse.equinox.available"> + <input validargs="n,N,no,No,NO,y,Y,yes,Yes,YES" defaultvalue="no" addproperty="org.eclipse.equinox.response"> +Do you want me to grab from CVS the 3.5 version of org.eclipse.equinox? +Unless you're going to work on lombok.patcher's OSGi integration, you won't need this. + </input> + <condition property="org.eclipse.equinox.checkout"> + <matches string="${org.eclipse.equinox.response}" casesensitive="false" pattern="^y(es)?$" /> + </condition> + </target> + + <target name="update" depends="-check-eclipse.org, + update-eclipse.debug.target, + update-org.eclipse.jdt.core, + update-org.eclipse.jdt.ui, + update-org.eclipse.core.runtime, + update-org.eclipse.ltk.core.refactoring, + update-org.eclipse.equinox" /> + + <target name="build" /> + + <target name="checkout-org.eclipse.jdt.core" if="org.eclipse.jdt.core.checkout"> + <cvs + cvsRoot="${repository.eclipse.org-eclipse}" + dest="${eclipse.org.contrib.base}" + package="org.eclipse.jdt.core" + tag="TR3_5_Maintenance" + failonerror="true" /> + <echo level="info">eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace.</echo> + </target> + + <target name="update-org.eclipse.jdt.core" if="org.eclipse.jdt.core.available"> + <cvs command="update" dest="${eclipse.org.contrib.base}/org.eclipse.jdt.core" /> + </target> + + <target name="checkout-org.eclipse.jdt.ui" if="org.eclipse.jdt.ui.checkout"> + <cvs + cvsRoot="${repository.eclipse.org-eclipse}" + dest="${eclipse.org.contrib.base}" + package="org.eclipse.jdt.ui" + tag="TR3_5_Maintenance" + failonerror="true" /> + <echo level="info">eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace.</echo> + </target> + + <target name="update-org.eclipse.jdt.ui" if="org.eclipse.jdt.ui.available"> + <cvs command="update" dest="${eclipse.org.contrib.base}/org.eclipse.jdt.ui" /> + </target> + + <target name="checkout-org.eclipse.core.runtime" if="org.eclipse.core.runtime.checkout"> + <cvs + cvsRoot="${repository.eclipse.org-eclipse}" + dest="${eclipse.org.contrib.base}" + package="org.eclipse.core.runtime" + tag="R3_5_1" + failonerror="true" /> + <echo level="info">eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace.</echo> + </target> + + <target name="update-org.eclipse.core.runtime" if="org.eclipse.core.runtime.available"> + <cvs command="update" dest="${eclipse.org.contrib.base}/org.eclipse.core.runtime" /> + </target> + + <target name="checkout-org.eclipse.ltk.core.refactoring" if="org.eclipse.ltk.core.refactoring.checkout"> + <cvs + cvsRoot="${repository.eclipse.org-eclipse}" + dest="${eclipse.org.contrib.base}" + package="org.eclipse.ltk.core.refactoring" + tag="NR3_5_1" + failonerror="true" /> + <echo level="info">eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace.</echo> + </target> + + <target name="update-org.eclipse.ltk.core.refactoring" if="org.eclipse.ltk.core.refactoring.available"> + <cvs command="update" dest="${eclipse.org.contrib.base}/org.eclipse.ltk.core.refactoring" /> + </target> + + <target name="checkout-org.eclipse.equinox" if="org.eclipse.equinox.checkout"> + <cvs + cvsRoot="${repository.eclipse.org-rt}" + dest="${eclipse.org.contrib.base}" + package="org.eclipse.equinox" + failonerror="true" /> + <echo level="info">eclipse module checked out in a sibling directory to the lombok project directory. You may want to add the project to your eclipse workspace.</echo> + </target> + + <target name="update-org.eclipse.equinox" if="org.eclipse.equinox.available"> + <cvs command="update" dest="${eclipse.org.contrib.base}/org.eclipse.equinox" /> + </target> + + <target name="install-eclipse.debug.target" if="eclipse.debug.target.create"> + <antcall target="-create-eclipse.debug.target" /> + <echo level="info"> + --------------------------- + + Launch target configured; it should show up in your eclipse under the debug menu as "LombokizedEclipse". + It does NOT hot-code-replace on lombok itself - you'll need to run 'ant dist' every time you want to use it. This is an unavoidable shortcoming of java agents. You can, however, breakpoint and step through your eclipse this way. + + --------------------------- + </echo> + </target> + + <target name="update-eclipse.debug.target" if="eclipse.debug.target.available"> + <antcall target="-create-eclipse.debug.target" /> + </target> + + <target name="detect-mac"> + <condition property="startOnFirstThread" value="-XstartOnFirstThread"> + <os family="mac" /> + </condition> + <condition property="startOnFirstThread" value=""> + <not><os family="mac" /></not> + </condition> + </target> + + <target name="-create-eclipse.debug.target" depends="detect-mac"> + <copy + file="buildScripts/deps/eclipse-debug-target.template" + tofile="LombokizedEclipse.launch" + preservelastmodified="true" + overwrite="true"> + <filterset> + <filter token="START_ON_FIRST_THREAD" value="${startOnFirstThread}" /> + </filterset> + </copy> + </target> + + <target name="-check-eclipse.org"> + <available file="${eclipse.org.contrib.base}/org.eclipse.jdt.core/.project" property="org.eclipse.jdt.core.available" /> + <available file="${eclipse.org.contrib.base}/org.eclipse.jdt.ui/.project" property="org.eclipse.jdt.ui.available" /> + <available file="${eclipse.org.contrib.base}/org.eclipse.core.runtime/.project" property="org.eclipse.core.runtime.available" /> + <available file="${eclipse.org.contrib.base}/org.eclipse.ltk.core.refactoring/.project" property="org.eclipse.ltk.core.refactoring.available" /> + <available file="${eclipse.org.contrib.base}/org.eclipse.equinox/.project" property="org.eclipse.equinox.available" /> + <available file="LombokizedEclipse.launch" property="eclipse.debug.target.available" /> + </target> +</project> diff --git a/buildScripts/deps/lombok-patcher.ant.xml b/buildScripts/deps/lombok-patcher.ant.xml new file mode 100644 index 00000000..c0dfbf77 --- /dev/null +++ b/buildScripts/deps/lombok-patcher.ant.xml @@ -0,0 +1,158 @@ +<!-- + Copyright © 2009 Reinier Zwitserloot and Roel Spilker. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +--> +<project name="lombok-deps-lombok-patcher" basedir="../.." default="install"> + <description> +This buildfile is part of projectlombok.org. It responsible for finding, downloading, and updating the lombok.patcher dependency. + </description> + <import file="../git.ant.xml" /> + + <property name="lombok.patcher.giturl" value="git://github.com/rzwitserloot/lombok.patcher.git" /> + <property name="lombok.patcher.dir" location="../lombok.patcher" /> + <property name="lombok.patcher.fileurl" value="http://projectlombok.org/downloads/lombok-patcher.jar" /> + <property name="lombok.patcher.fileloc" location="lib/lombok/lombok-patcher.jar" /> + + <target name="install-silent" depends="-check-lombok.patcher, -update-git-lombok.patcher, -update-file-lombok.patcher"> + <condition property="lombok.patcher.git.grab"> + <not><isset property="lombok.patcher.available.git" /></not> + </condition> + <antcall target="-grab-git-lombok.patcher" /> + <antcall target="-update-git-lombok.patcher" /> + </target> + + <target name="install" depends="-check-lombok.patcher, -missing1-lombok.patcher, -missing2-lombok.patcher, -update-git-lombok.patcher" /> + + <target name="update" depends="-check-lombok.patcher, -warn-lombok.patcher, -update-git-lombok.patcher, -check-replace-lombok.patcher, -replace-lombok.patcher"> + <condition property="lombok.patcher.file.update"> + <and> + <isset property="lombok.patcher.available.file" /> + <not><isset property="lombok.patcher.available.git" /></not> + </and> + </condition> + <antcall target="-update-file-lombok.patcher" /> + </target> + + <target name="build" depends="-check-lombok.patcher, -warn-lombok.patcher, -check-replace-lombok.patcher, -replace-lombok.patcher" /> + + <target name="-warn-lombok.patcher" unless="lombok.patcher.available"> + <fail>You don't have any version of lombok-patcher.jar installed. Run 'ant installDeps' to fix this.</fail> + </target> + + <target name="-check-replace-lombok.patcher" if="lombok.patcher.checkreplace.git"> + <ant dir="${lombok.patcher.dir}" target="dist" inheritAll="false" /> + + <condition property="lombok.patcher.replace"> + <or> + <not><available file="${lombok.patcher.fileloc}" /></not> + <not><uptodate + srcfile="${lombok.patcher.dir}/dist/lombok-patcher.jar" + targetfile="${lombok.patcher.fileloc}" /></not> + </or> + </condition> + </target> + + <target name="-replace-lombok.patcher" if="lombok.patcher.replace"> + <copy file="${lombok.patcher.dir}/dist/lombok-patcher.jar" tofile="${lombok.patcher.fileloc}" /> + <echo level="info">** UPDATED: ${lombok.patcher.fileloc}</echo> + </target> + + <target name="-check-lombok.patcher"> + <available file="${lombok.patcher.dir}/.project" property="lombok.patcher.available.git" /> + <available file="${lombok.patcher.fileloc}" property="lombok.patcher.available.file" /> + <condition property="lombok.patcher.available"> + <or> + <isset property="lombok.patcher.available.git" /> + <isset property="lombok.patcher.available.file" /> + </or> + </condition> + <condition property="lombok.patcher.skip.missing2"> + <isset property="lombok.patcher.available.git" /> + </condition> + <condition property="lombok.patcher.checkreplace.git"> + <isset property="lombok.patcher.available.git" /> + </condition> + </target> + + <target name="-missing1-lombok.patcher" unless="lombok.patcher.available"> + <property name="lombok.patcher.skip.missing2" value="true" /> + <input validArgs="s,S,skip,Skip,SKIP,g,G,get,Get,GET,d,D,download,Download,DOWNLOAD" addproperty="missing1.feedback"> +You don't have the lombok.patcher dependency. I can grab the lombok.patcher project form version control. If you want me to do so, I will put the project in a sibling directory next to your 'lombok' project directory. Otherwise, I can grab a copy from the internet, though it won't be as up-to-date, and may thus be insufficient to run the very latest lombok. + Pick one (first letter will do): + Skip - Skips this download. This dependency is not optional, so your lombok won't compile. + Get - Grabs the latest version of lombok.patcher from source control. + Download - Downloads the latest version from the internet, and will not be as up to date as 'get'. + </input> + <condition property="lombok.patcher.git.grab"> + <matches string="${missing1.feedback}" casesensitive="false" pattern="^g(et)?$" /> + </condition> + <condition property="lombok.patcher.file.grab"> + <matches string="${missing1.feedback}" casesensitive="false" pattern="^d(ownload)?$" /> + </condition> + <antcall target="-grab-git-lombok.patcher" /> + <antcall target="-grab-file-lombok.patcher" /> + </target> + + <target name="-missing2-lombok.patcher" unless="lombok.patcher.skip.missing2"> + <input validArgs="s,S,skip,Skip,SKIP,g,G,get,Get,GET" defaultvalue="s" addproperty="missing2.feedback"> +You only have the lombok.patcher dependency as a downloaded file, which won't be as cutting edge as grabbing it from version control. Do you want to grab lombok.patcher from source control? I will put the project in a sibling directory next to your 'lombok' directory. + Pick one (first letter will do): + Skip - Skips this download, and continues to rely on the occasionally updated web version. + Get - Grabs the latest version of lombok.patcher from source control. Lombok will start using this instead. + </input> + <condition property="lombok.patcher.git.grab"> + <matches string="${missing2.feedback}" casesensitive="false" pattern="^g(et)?$" /> + </condition> + <condition property="lombok.patcher.file.update"> + <matches string="${missing2.feedback}" casesensitive="false" pattern="^s(kip)?$" /> + </condition> + <antcall target="-grab-git-lombok.patcher" /> + <antcall target="-update-file-lombok.patcher" /> + </target> + + <target name="-grab-git-lombok.patcher" if="lombok.patcher.git.grab"> + <echo level="info">Cloning ${lombok.patcher.giturl} into ${lombok.patcher.dir}</echo> + <git-clone repository="${lombok.patcher.giturl}" dest="${lombok.patcher.dir}" /> + <echo level="info"> +Done! lombok-patcher.jar will now be resolved from this cloned repository. +You may want to import this project into your eclipse workspace as well. + </echo> + <property name="lombok.patcher.checkreplace.git" value="true" /> + </target> + + <target name="-update-git-lombok.patcher" if="lombok.patcher.available.git"> + <echo level="info">Updating existing git repository of lombok.patcher...</echo> + <git-pull gitdir="${lombok.patcher.dir}" /> + </target> + + <target name="-grab-file-lombok.patcher" if="lombok.patcher.file.grab"> + <echo level="info">Downloading lombok-patcher.jar from the internet...</echo> + <antcall target="-download-file-lombok.patcher" /> + </target> + + <target name="-update-file-lombok.patcher" if="lombok.patcher.file.update"> + <echo level="info">Updating existing lombok-patcher.jar from the internet...</echo> + <antcall target="-download-file-lombok.patcher" /> + </target> + + <target name="-download-file-lombok.patcher"> + <get src="${lombok.patcher.fileurl}" dest="${lombok.patcher.fileloc}" verbose="true" usetimestamp="true" /> + </target> +</project> |