ant not creating jar file
i'm really stuck into it.
i've done everything but of no use.
My problem is that i created a simplebuild.xml file and tried to make it through theAnt tool.
It is creating and deleting directories, compiling the files successfully but not creating the jar file. also it is not running the program.
Here is my class and here is mybuild.xml file.
i've put all files in directory :c:\usingant
<project default="compile">
<property name="src" location="src"/>
<property name="jar" location="jar"/>
<property name="classes" location="classes"/>
<property name="build" location="."/>
<target name="init">
<delete dir="${jar}"/>
<delete dir="${classes}"/>
<mkdir dir="${jar}" />
<mkdir dir="${classes}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${classes}" />
</target>
<target name="run" depends="compile">
<java classname="AntTest" classpath="${classes}" fork="true"/>
</target>
</project>
the java file is placed in the src directory
public class AntTest{
public static void main( String ar[] ){
System.out.println("This program is testing Ant");
}
}
Please help me what's wrong
thanking you in advance

