/src
/lib
<?xml version="1.0" encoding="UTF-8" ?>
<project name="HelloWorld" default="build" basedir=".">
<property name="src" value="src"/>
<property name="dest" value="classes"/>
<property name="buildjar" value="OnboardSearch.jar"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="classpath">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${dest}"/>
</target>
<target name="compile" depends="clean,init">
<javac srcdir="${src}" destdir="${dest}">
<classpath refid="classpath" />
</javac>
</target>
<target name="build" depends="compile">
<jar jarfile="${buildjar}" basedir="${dest}"/>
</target>
<target name="clean">
<delete dir="${dest}" />
<delete file="${buildjar}" />
</target>
</project>
https://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html