diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-08 22:26:30 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-08 22:26:30 +0200 |
commit | 1677c4a52a0aea1b955f7c2c7d096903d4a8c5ce (patch) | |
tree | 29de8d12d774f026c0f317e229532befaeb2d096 /build.xml | |
download | lombok-1677c4a52a0aea1b955f7c2c7d096903d4a8c5ce.tar.gz lombok-1677c4a52a0aea1b955f7c2c7d096903d4a8c5ce.tar.bz2 lombok-1677c4a52a0aea1b955f7c2c7d096903d4a8c5ce.zip |
Initial commit. As a proof of concept, it already works in javac and eclipse!
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/build.xml b/build.xml new file mode 100644 index 00000000..f2d1b635 --- /dev/null +++ b/build.xml @@ -0,0 +1,49 @@ +<project name="lombok" default="dist"> + <property name="build.compiler" value="javac1.6" /> + <path id="deps.path"> + <fileset dir="deps"> + <include name="**/*.jar" /> + </fileset> + </path> + <path id="libs.path"> + <fileset dir="lib"> + <include name="**/*.jar" /> + </fileset> + </path> + + <target name="clean"> + <delete dir="build" quiet="true" /> + <delete dir="dist" quiet="true" /> + </target> + + <target name="compile"> + <mkdir dir="build" /> + <javac srcdir="src" debug="on" destdir="build"> + <classpath refid="deps.path" /> + <classpath refid="libs.path" /> + </javac> + <mkdir dir="build/META-INF" /> + <mkdir dir="build/META-INF/services" /> + <echo file="build/META-INF/services/javax.annotation.processing.Processor">lombok.apt.Processor</echo> + </target> + + <target name="unpackLibs"> + <unjar dest="build"> + <path refid="libs.path" /> + </unjar> + </target> + + <target name="dist" depends="clean, compile, unpackLibs"> + <mkdir dir="dist" /> + <tstamp> + <format property="distTime" pattern="yyyyMMdd'T'hhmmss" locale="en,US" /> + </tstamp> + <jar basedir="build" destfile="dist/lombok-${distTime}.jar"> + <manifest> + <attribute name="Premain-Class" value="lombok.agent.eclipse.EclipseParserPatcher" /> + <attribute name="Can-Redefine-Classes" value="true" /> + </manifest> + </jar> + <copy file="dist/lombok-${distTime}.jar" tofile="dist/lombok.jar" /> + </target> +</project> |