diff options
Diffstat (limited to 'dev-java/laf-plugin/files/laf-plugin-0.2-build.xml')
-rw-r--r-- | dev-java/laf-plugin/files/laf-plugin-0.2-build.xml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-java/laf-plugin/files/laf-plugin-0.2-build.xml b/dev-java/laf-plugin/files/laf-plugin-0.2-build.xml new file mode 100644 index 000000000000..fbcd199a4d9e --- /dev/null +++ b/dev-java/laf-plugin/files/laf-plugin-0.2-build.xml @@ -0,0 +1,46 @@ +<project name="laf_plugin" default="dist" basedir="."> + <description> + Simple build file made by Alistair Bush for the kunststoff + project. + </description> + + <property name="src" location="./src"/> + <property name="build" location="./build"/> + <property name="dist" location="./dist"/> + <property name="api" location="api"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${api}"/> + </target> + + <target name="javadoc" depends="init" description="Produce JavaDoc"> + <javadoc sourcepath="${src}" destdir="${api}"/> + </target> + + <target name="compile" depends="init" description="compile the source"> + <javac srcdir="${src}" destdir="${build}" > + <include name="**/*.java" /> + </javac> + </target> + + <target name="dist" depends="compile" + description="generate the distribution" > + + <copy todir="build"> + <fileset dir="src"> + <exclude name="**/*.java"/> + </fileset> + </copy> + <mkdir dir="${dist}" /> + <jar jarfile="${dist}/laf-plugin.jar" basedir="${build}"/> + </target> + + <target name="clean" description="Clean up"> + <delete dir="${build}" /> + <delete dir="${dist}" /> + <delete file="./*.jar" /> + </target> + +</project> |