1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
--- a/build.xml
+++ b/build.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="jar" name="jamon" basedir=".">
+ <property file="build.properties"/>
+
+ <target name="clean" description="Clean up">
+ <delete dir="${class.dir}"/>
+ <delete file="${jar.name}"/>
+ </target>
+
+ <target name="compile" description="Compile the sources">
+ <mkdir dir="${class.dir}"/>
+ <javac srcdir="${source.dir}" destdir="${class.dir}"
+ deprecation="true" debug="true" optimize="false" nowarn="true"/>
+ </target>
+
+ <target name="javadoc" description="Creates Javadoc documentation"
+ depends="jar">
+ <mkdir dir="${doc.dir}"/>
+ <javadoc packagenames="${doc.packagenames}"
+ classpath="${class.dir}/${jar.name}"
+ sourcepath="${source.dir}" destdir="${doc.dir}"/>
+ </target>
+
+ <target name="jar" description="Create the jar" depends="compile">
+ <jar jarfile="${jar.name}" basedir="${class.dir}"/>
+ </target>
+
+ <target name="install" depends="jar">
+ <mkdir dir="${destdir}/usr/share/java/" />
+ <copy file="${jar.name}" todir="${destdir}/usr/share/java/"/>
+ </target>
+</project>
--- a/build.properties 2012-06-14 08:15:53.674554881 -0430
+++ b/build.properties 2012-06-25 15:02:20.000000000 -0430
@@ -0,0 +1,9 @@
+class.dir=build
+source.dir=src/java
+jar.name=jamon.jar
+doc.dir=docs
+doc.packagenames=com.*
+# Ensure that source and target are 1.5
+# For backwards compat on Java 7
+ant.build.javac.source=1.5
+ant.build.javac.target=1.5
|