Ant target: clean : Delete Clean « Ant « Java






Ant target: clean

<?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.TestSample"
            classpath="build">  
          <arg line=""/>
      </java>
   </target>

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

</project>

           
       








AntCompileAndClean.zip( 1 k)

Related examples in the same category

1.Ant: Remove all generated files