java - Jar File Not getting created with ant script -


i trying execute ant script compile, create jar & execute. getting "build successful" message. jar file not getting created.

my ant file :

<?xml version="1.0" encoding="utf-8"?> <project name="testant" basedir="." default="compile">     <description>simple example build file</description>     <property name="src" location="src"/>     <property name="output" location="bin"/>     <property name="dist" location="."/>     <target name="compile">         <javac includeantruntime="false"  destdir="${output}">             <src path="${src}"/>     <!-- <classpath refid="java"/> -->         </javac>     </target>     <target name="jar" depends="compile">         <jar jarfile="${dist}/test.jar" basedir="${output}">             <manifest>                 <attribute name="main-class" value="test"/>             </manifest>         </jar>     </target>     <target name="run">         <java jar="${dist}/test.jar" fork="true"/>     </target> </project> 

can please?

change line <project name="testant" basedir="." default="compile"> <project name="testant" basedir="." default="jar">. both compile , create jar - since compile target dependent on jar task.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -