·  ANT – Tags – <javac/>

 

- Info:

  - Compiles all *.java files.

  - classpath defines to use classes from classes.zip and servlet.jar.

  - srcdir    defines to compile all *.java files from src directory.

  - destdir   defines to create *.class files in classes directory.

 

- Example:

  - Create ANT Script Test.xml

 

    Test.xml

    <?xml version="1.0" encoding="UTF-8"?>

    

    <project name="MyAntProject" default="default" basedir=".">

    

      <target name="compile">

        

        <javac classpath = "D:\wtklib\classes.zip:D:\libraries\servlet.jar"

               srcdir    = "D:\ProgramFiles\WirelessToolkit20\apps\Test\src"

               destdir   = "..\classes"/>

                

      </target>  

    

    </projec>