Hey, am new to the Javaprogramming forums and I already have a question. I have this project I am trying to build but ant only executes till it reaches the part in bold.
<project name="RunCommand" default="clean" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="final" location="final"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<delete dir="${build}"/>
<delete dir="${dist}"/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile-dist" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="dist" depends="compile-dist"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/RunCommand.jar" basedir="${build}"/>
</target>
<target name="move" depends="dist,compile-dist,init">
<mkdir dir="${final}"/>
<move todir="${final}">
<fileset dir="${dist}" includes="*.jar"/>
</move>
</target>
<target name="clean" depends="move,dist,compile-dist,init"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
I am just a beginner at programming so the code may be a bit messy. But can someone help me out coz I can't seem to know where the problem is. Thanks.