I was trying to building a java project with a run function. Problem is, the build file is located at the base directory and file with the main method is in the /contents/username/ subdirectory - I can't seem to properly call the file even though when I run Ant compile, the .java with the main method is compiled without a problem
<project name="build" default="compile">
<target name="compile" depends="clean">
<javac srcdir="." includeantruntime="false"/>
</target>
<target name="clean">
<delete>
<fileset dir="." includes="**/*.class"/>
<fileset dir="." defaultexcludes="no" includes="**/*~"/>
</delete>
<delete dir="META-INF" failonerror="false"/>
</target>
<target name="run" depends="compile, who">
<java classname="Driver" classpath="./contents/username" fork="yes"/>
</target>
<target name="who">
<echo message="Written by ****, is that a good thing?"/>
</target>
<target name="jar">
<jar destfile="./username.jar">
<fileset dir="." includes="**/*.java, build.xml"/>
</jar>
</target>
</project>