Output: The Build is sucessfuly creating the jar file but not executing the Java file. Any idea why the java is not executing the file. Regards, Venu.
<?xml version="1.0" encoding="UTF-8"?> <!-- packagenames="org.*, de.*, test.*, writer.*" --> <project name="structured" default="archive" > <target name="init"> <mkdir dir="build/classes" /> <mkdir dir="build/classes/docs" /> <mkdir dir="dist" /> </target> <target name="compile" depends="init" > <javac srcdir="src" destdir="build/classes"/> </target> <target name="javadocs" depends="compile" description="make the java docs" > <javadoc author="true" destdir="build/classes/docs" packagenames="org.*" sourcepath="src" use="true" version="true" windowtitle="documentation" private="true"> <classpath refid="compile.classpath"/> </javadoc> </target> <target name="archive" depends="compile" > <jar destfile="dist/project.jar" basedir="build/classes" /> </target> <target name="execute" depends="compile"> <java classname="org.example.antbook.lesson1.Main" classpath="build/classes"> <arg value="a"/> <arg value="b"/> <arg file="."/> </java> <java classname="org.example.antbook.lesson1.HelloWorld" classpath="build/classes"> </java> </target> <target name="clean" depends="execute"> <delete dir="build" /> <delete dir="dist" /> </target> </project> ______________________________________________________________________________ DISCLAIMER The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or directly to netsupp...@cmcltd.com or telephone and immediately and permanently delete the message and any attachments. Thank you. ______________________________________________________________________________ This email has been scrubbed for your protection by SecureMX. For more information visit http://securemx.in _____________________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org