The following will create dist/output.jar from the source code in src and the libraries in lib, and will use src/Main.java as the main class.
<project name="Project" default="main" basedir=".">
<property name="src.dir" value="src"...