POKE ME for any consultancy

Saturday, December 19, 2015

ANT Build file

<?xml version="1.0"?>
<project name="AmitAnand" default="jar" basedir=".">
<property name="src.dir" location="src" />
<property name="build.dir" location="D:\build" />
<property name="project.name" value="AmitAnand" />
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="makedir">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/classes" />
</target>
<target name="compile" depends="clean,makedir">
<javac srcdir="${src.dir}" destdir="${build.dir}/classes"/>
</target>
<target name="jar" depends="compile">
<jar destfile="${build.dir}/jars/${project.name}.jar" basedir="${build.dir}/classes" />
</target>
</project>

No comments:

Post a Comment