diff options
Diffstat (limited to 'buildScripts')
30 files changed, 273 insertions, 1128 deletions
diff --git a/buildScripts/compile.ant.xml b/buildScripts/compile.ant.xml deleted file mode 100644 index 7f8e2ba7..00000000 --- a/buildScripts/compile.ant.xml +++ /dev/null @@ -1,173 +0,0 @@ -<!-- - 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-compile" basedir=".." default="dist"> - <description> -This buildfile is part of projectlombok.org. It responsible for compiling the main -lombok code including the various agents. - </description> - <property name="build.compiler" value="javac1.6" /> - - <target name="version" unless="lombok.version"> - <ant antfile="build.xml" target="version" inheritAll="false" /> - <loadresource property="lombok.version"> - <file file="build/version.txt" /> - <filterchain> - <striplinebreaks /> - </filterchain> - </loadresource> - </target> - - <path id="deps.path"> - <fileset dir="deps/lombok"> - <include name="**/*.jar" /> - </fileset> - </path> - - <path id="libs.path"> - <fileset dir="lib/lombok"> - <include name="**/*.jar" /> - </fileset> - </path> - - <path id="findbugs_deps.path"> - <fileset dir="deps/buildScripts/findbugs"> - <include name="**/*.jar" /> - </fileset> - </path> - - <target name="-unpackLibs"> - <unjar dest="build/lombok"> - <path refid="libs.path" /> - </unjar> - </target> - - <target name="-check-findbugs"> - <available property="findbugs.available" file="deps/buildScripts/findbugs/bin/findbugs" /> - <fail unless="findbugs.available" message="You don't have findbugs available. Run 'ant installDeps' to fetch it." /> - </target> - - <target name="findbugs" depends="-check-findbugs, dist" description="Runs findbugs on the lombok sources"> - <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs_deps.path" /> - <mkdir dir="build/lombok_aux" /> - <!-- This ridiculous waste of time (unpacking ALL deps, which is a lot of data!) is done because the ant findbugs task is - a retarded stepchild; it does not understand either pathrefs or wildcards (*.jar), and hardcoding the names of the various - eclipse module jars would be even worse. --> - <unjar dest="build/lombok_aux"> - <fileset dir="deps/lombok"> - <include name="**/*.jar" /> - </fileset> - </unjar> - - <findbugs home="deps/buildScripts/findBugs" output="html" outputFile="findbugsReport.html" jvmargs="-Xmx512m"> - <auxClasspath path="build/lombok" /> - <auxClasspath path="build/lombok_aux" /> - <sourcePath path="src/core" /> - <sourcePath path="src/installer" /> - <sourcePath path="src/eclipseAgent" /> - <sourcePath path="src/netbeansAgent" /> - <sourcePath path="src/delombok" /> - <class location="build/lombok/lombok" /> - </findbugs> - </target> - - <patternset id="copyables"> - <exclude name="**/*.java" /> - <exclude name="**/*.class" /> - <exclude name="**/*.svg" /> - </patternset> - - <target name="compile" description="Compiles the code"> - <mkdir dir="build/lombok" /> - <!-- ant includes the destination dir on the classpath (and there are good reason to do this), but that also means - the bleeding edge lombok from the previous build is run, which means if there are bugs in it, you can't compile - anymore until you 'ant clean'. That's very much not desired, so we kill the processor, which stops lombok from running. - We re-create the file at the end of this target. --> - <delete file="build/lombok/META-INF/services/javax.annotation.processing.Processor" quiet="true" /> - - <!-- This version trickery is so that an eclipse running in a JVM 1.5 will run - properly (It'll never touch the javac files and hence never trigger a - Bad Class Version Number error, but for javac we definitely cannot support - javac 1.5, partly because they completely rewrote large swaths of javac, - and partly because our injection mechanism (annotations) doesn't work very - well on javac 1.5, hence, when using javac, we do demand you're on 1.6. --> - <javac debug="on" destdir="build/lombok" target="1.5" source="1.5"> - <src path="src/core" /> - <src path="src/installer" /> - <src path="src/eclipseAgent" /> - <exclude name="lombok/javac/**" /> - <classpath refid="deps.path" /> - <classpath refid="libs.path" /> - <compilerarg value="-Xlint:unchecked" /> - </javac> - <javac debug="on" destdir="build/lombok" target="1.6" source="1.6"> - <src path="src/core" /> - <src path="src/delombok" /> - <src path="src/netbeansAgent" /> - <include name="lombok/javac/**" /> - <include name="lombok/delombok/**" /> - <include name="lombok/netbeans/**" /> - <classpath location="build/lombok" /> - <classpath refid="deps.path" /> - <classpath refid="libs.path" /> - <compilerarg value="-Xlint:unchecked" /> - </javac> - <copy todir="build/lombok"> - <fileset dir="src/installer"> - <patternset refid="copyables" /> - </fileset> - <fileset dir="src/core"> - <patternset refid="copyables" /> - </fileset> - <fileset dir="src/eclipseAgent"> - <patternset refid="copyables" /> - </fileset> - <fileset dir="src/netbeansAgent"> - <patternset refid="copyables" /> - </fileset> - <fileset dir="src/delombok"> - <patternset refid="copyables" /> - </fileset> - </copy> - - <mkdir dir="build/lombok/META-INF" /> - <mkdir dir="build/lombok/META-INF/services" /> - <echo file="build/lombok/META-INF/services/javax.annotation.processing.Processor">lombok.core.AnnotationProcessor</echo> - </target> - - <target name="dist" description="Builds THE lombok.jar file which contains everything" depends="compile, version, -unpackLibs"> - <mkdir dir="dist" /> - <copy file="doc/changelog.markdown" tofile="build/changelog.txt" /> - <jar destfile="dist/lombok-${lombok.version}.jar"> - <fileset dir="build/lombok" /> - <fileset dir="build" includes="changelog.txt" /> - <fileset dir="." includes="LICENCE" /> - <manifest> - <attribute name="Premain-Class" value="lombok.core.Agent" /> - <attribute name="Agent-Class" value="lombok.core.Agent" /> - <attribute name="Can-Redefine-Classes" value="true" /> - <attribute name="Main-Class" value="lombok.core.Main" /> - <attribute name="Lombok-Version" value="${lombok.version}" /> - </manifest> - </jar> - <copy file="dist/lombok-${lombok.version}.jar" tofile="dist/lombok.jar" /> - </target> -</project> diff --git a/buildScripts/deps.ant.xml b/buildScripts/deps.ant.xml deleted file mode 100644 index f3a07ec8..00000000 --- a/buildScripts/deps.ant.xml +++ /dev/null @@ -1,51 +0,0 @@ -<!-- - 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" basedir=".." default="install"> - <description> -This buildfile is part of projectlombok.org. It responsible for finding, downloading, -and building dependencies. - </description> - - <target name="install" description="Gets all dependencies, including optional ones, interactively (asks you)"> - <subant target="install"> - <fileset dir="buildScripts/deps" includes="*.ant.xml" /> - </subant> - </target> - - <target name="install-silent" description="Gets all dependencies, including optional ones, assuming you want everything."> - <subant target="install-silent"> - <fileset dir="buildScripts/deps" includes="*.ant.xml" /> - </subant> - </target> - - <target name="update" description="Updates without interaction those deps you already have."> - <subant target="update"> - <fileset dir="buildScripts/deps" includes="*.ant.xml" /> - </subant> - </target> - - <target name="build" description="Builds all dependencies for which you've installed the source version."> - <subant target="build"> - <fileset dir="buildScripts/deps" includes="*.ant.xml" /> - </subant> - </target> -</project> diff --git a/buildScripts/deps/eclipse-debugging.ant.xml b/buildScripts/deps/eclipse-debugging.ant.xml deleted file mode 100644 index dddd7f6a..00000000 --- a/buildScripts/deps/eclipse-debugging.ant.xml +++ /dev/null @@ -1,259 +0,0 @@ -<!-- - 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=".." /> - - <!-- Skips equinox because it's ENORMOUS and rarely needed. --> - <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" /> - - <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. - -WARNING: This project is enormous (350MB) and takes like an hour to check out. You should answer no unless you _really_ want it. - </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="R3_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="R3_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="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.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="d32" value="-d32"> - <os family="mac" /> - </condition> - <condition property="d32" 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}" /> - <filter token="D32" value="${d32}" /> - </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/findbugs.ant.xml b/buildScripts/deps/findbugs.ant.xml deleted file mode 100644 index 6aeedb79..00000000 --- a/buildScripts/deps/findbugs.ant.xml +++ /dev/null @@ -1,79 +0,0 @@ -<!-- - 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-findbugs" basedir="../.." default="install"> - <description> -This buildfile is part of projectlombok.org. It responsible for finding, downloading, and updating findbugs. - </description> - - <property name="findbugs.dir" location="deps/buildScripts/findbugs" /> - - <target name="-grab-findbugs-if-wanted" unless="findbugs.available" if="findbugs.grab"> - <antcall target="-grab-findbugs" /> - </target> - - <target name="-grab-findbugs" unless="findbugs.available"> - <mkdir dir="build/findbugs" /> - <mkdir dir="${findbugs.dir}" /> - <echo>Downloading findbugs v1.3.9 from sourceforge...</echo> - <get - src="http://mesh.dl.sourceforge.net/project/findbugs/findbugs/1.3.9/findbugs-1.3.9.tar.gz" - dest="build/findbugs/findbugs.tar.gz" - verbose="true" /> - <untar src="build/findbugs/findbugs.tar.gz" compression="gzip" dest="${findbugs.dir}"> - <mapper type="glob" from="findbugs-1.3.9/*" to="*" /> - <patternset> - <exclude name="findbugs-1.3.9/doc" /> - <exclude name="findbugs-1.3.9/doc/**" /> - </patternset> - </untar> - </target> - - <target name="-check-findbugs" unless="findbugs.available"> - <available property="findbugs.available" file="${findbugs.dir}/bin/findbugs" /> - </target> - - <target name="install-silent" depends="-check-findbugs, -grab-findbugs"> - <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-findbugs, -missing-findbugs" /> - - <target name="update" /> - <target name="build" /> - - <target name="-missing-findbugs" unless="findbugs.available"> - <input validArgs="s,S,skip,Skip,SKIP,g,d,D,download,Download,DOWNLOAD" addproperty="missing1.feedback"> -You don't have the findbugs dependency. If you want to run the 'ant findbugs' task to run findbugs on the lombok sources, you'll need it. Otherwise, you can skip it. If you want me to do so, I will download findbugs now and unpack it in the appropriate place (deps/buildScripts/findbugs). The file will be downloaded from sourceforge. - Pick one (first letter will do): - Skip - Skips this download. This dependency is optional. - Download - Grabs findbugs, so that you can run 'ant findbugs'. - </input> - <condition property="findbugs.grab"> - <matches string="${missing1.feedback}" casesensitive="false" pattern="^d(ownload)?$" /> - </condition> - <antcall target="-grab-findbugs-if-wanted" /> - </target> -</project> diff --git a/buildScripts/deps/lombok-patcher.ant.xml b/buildScripts/deps/lombok-patcher.ant.xml deleted file mode 100644 index c0dfbf77..00000000 --- a/buildScripts/deps/lombok-patcher.ant.xml +++ /dev/null @@ -1,158 +0,0 @@ -<!-- - 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> |
