aboutsummaryrefslogtreecommitdiff
path: root/experimental/buildScripts/disableCheckedExceptions.ant.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-17 13:20:24 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-17 13:20:24 +0200
commite56d83869134d6eb679d06cd0f334dc51396bea8 (patch)
tree9c01a3612346268d6f980bff4a1ffdf9acbb5444 /experimental/buildScripts/disableCheckedExceptions.ant.xml
parentea04b3ff14d5a6cf90a550eeb866aace02964b1d (diff)
downloadlombok-e56d83869134d6eb679d06cd0f334dc51396bea8.tar.gz
lombok-e56d83869134d6eb679d06cd0f334dc51396bea8.tar.bz2
lombok-e56d83869134d6eb679d06cd0f334dc51396bea8.zip
Fixes to the buildScripts, and disableCheckedExceptions now works.
Diffstat (limited to 'experimental/buildScripts/disableCheckedExceptions.ant.xml')
-rw-r--r--experimental/buildScripts/disableCheckedExceptions.ant.xml21
1 files changed, 18 insertions, 3 deletions
diff --git a/experimental/buildScripts/disableCheckedExceptions.ant.xml b/experimental/buildScripts/disableCheckedExceptions.ant.xml
index b8deae24..1806be4d 100644
--- a/experimental/buildScripts/disableCheckedExceptions.ant.xml
+++ b/experimental/buildScripts/disableCheckedExceptions.ant.xml
@@ -42,6 +42,12 @@
</fileset>
</path>
+ <path id="buildScripts.deps.path">
+ <fileset dir="deps/buildScripts">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
<target name="-unpackLibs">
<mkdir dir="build/experimental/disableCheckedExceptions" />
<unjar dest="build/experimental/disableCheckedExceptions">
@@ -51,7 +57,7 @@
<target name="compile" description="Compiles disableCheckedExceptions.">
<mkdir dir="build/experimental/disableCheckedExceptions" />
- <javac debug="on" destdir="build/experimental/disableCheckedExceptions" target="1.6">
+ <javac includeDestClasses="false" debug="on" destdir="build/experimental/disableCheckedExceptions" target="1.6">
<src path="experimental/src" />
<include name="**/disableCheckedExceptions/**/*.java" />
<classpath refid="deps.path" />
@@ -62,14 +68,23 @@
<target name="dist" description="Creates the disable checked exceptions jar" depends="compile, -unpackLibs">
<mkdir dir="build/experimental/disableCheckedExceptions/META-INF" />
<mkdir dir="build/experimental/disableCheckedExceptions/META-INF/services" />
- <echo file="build/experimental/disableCheckedExceptions/META-INF/services/javax.annotation.processor">lombok.javac.disableCheckedExceptions.DynamicAgent</echo>
+ <echo file="build/experimental/disableCheckedExceptions/META-INF/services/javax.annotation.processing.Processor">lombok.javac.disableCheckedExceptions.DisableCheckedExceptionsAgent</echo>
<jar destfile="dist/disableCheckedExceptions-alpha.jar">
<fileset dir="build/experimental/disableCheckedExceptions" />
<manifest>
- <attribute name="Agent-Class" value="lombok.javac.disableCheckedExceptions.DynamicAgent" />
+ <attribute name="Agent-Class" value="lombok.javac.disableCheckedExceptions.DisableCheckedExceptionsAgent" />
<attribute name="Can-Redefine-Classes" value="true" />
<attribute name="Can-Retransform-Classes" value="true" />
</manifest>
</jar>
</target>
+
+ <taskdef name="scp" classname="org.apaxhe.tools.ant.taskdefs.optional.ssh.Scp" classpathref="buildScripts.deps.path" />
+ <target name="publish" description="Creates the disable checked exceptions jar, and uploads it" depends="dist">
+ <scp
+ localFile="dist/disableCheckedExceptions-alpha.jar"
+ todir="lombokup@projectlombok.org:/web/downloads"
+ keyfile="libertad-upload.key" passphrase=""
+ sftp="true" verbose="true" trust="true" />
+ </target>
</project>