summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/xjavac/files/xjavac-20041208-build.xml')
-rw-r--r--dev-java/xjavac/files/xjavac-20041208-build.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-java/xjavac/files/xjavac-20041208-build.xml b/dev-java/xjavac/files/xjavac-20041208-build.xml
new file mode 100644
index 000000000000..5c9a466ca8e8
--- /dev/null
+++ b/dev-java/xjavac/files/xjavac-20041208-build.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+
+<project name="xjavac" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="." />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="dist.dir" value="dist" />
+ <property name="lib.dir" value="lib" />
+ <property name="jarfile" value="${dist.dir}/xjavac.jar" />
+ <property name="target.jdk" value="1.4" />
+
+ <!-- init -->
+ <target name="init">
+ <mkdir dir="${dist.dir}" />
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${docs.dir}" />
+ </target>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ classpath="${classpath}"
+ source="${target.jdk}"
+ target="${target.jdk}"/>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}" />
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ </target>
+</project>