Class Javac

java.lang.Object
All Implemented Interfaces:
Cloneable, SelectorContainer

public class Javac extends MatchingTask
Compiles Java source files. This task can take the following arguments:
  • sourcedir
  • destdir
  • deprecation
  • classpath
  • bootclasspath
  • extdirs
  • optimize
  • debug
  • encoding
  • target
  • depend
  • verbose
  • failonerror
  • includeantruntime
  • includejavaruntime
  • source
  • compiler
  • release
Of these arguments, the sourcedir and destdir are required.

When this task executes, it will recursively scan the sourcedir and destdir looking for Java source files to compile. This task makes its compile decision based on timestamp.

Since:
Ant 1.1