Sponsered Links
Categories
Sponsered Links

Ant Target Compile

 

This example shows how to write the target tag in the build.xml file for compile the program.

<?xml version="1.0"?>

<project name="sample" default="test" basedir=".">

   <target name="compile">
      <mkdir dir="build"/>
      <javac destdir="build"
             debug="on"
             optimize="on">
         <src path="src"/>
      </javac>
   </target>

   <target name="test" depends="compile">
      <java fork="no" failonerror="yes"
            classname="test.TestExample"
            classpath="build">  
          <arg line=""/>
      </java>
   </target>

   <target name="clean">
      <delete dir="build"/>
   </target>

</project>

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved