Method Summary |
|
protected void | checkParameters() Check that all required attributes have been set and nothing
silly has been entered. |
protected void | compile() Perform the compilation. |
public Path | createBootclasspath() Adds a path to the bootclasspath. |
public Path | createClasspath() Adds a path to the classpath. |
public ImplementationSpecificArgument | createCompilerArg() Adds an implementation specific command-line argument. |
public Path | createExtdirs() Adds a path to extdirs. |
public Path | createSourcepath() Adds a path to sourcepath. |
public Path | createSrc() Adds a path for source compilation. |
public void | execute() Executes the task. |
public Path | getBootclasspath() Gets the bootclasspath that will be used to compile the classes
against. |
public Path | getClasspath() Gets the classpath to be used for this compilation. |
public String | getCompiler() The implementation for this particular task. |
public String | getCompilerVersion() The implementation for this particular task. |
public String[] | getCurrentCompilerArgs() Get the additional implementation specific command line arguments. |
public boolean | getDebug() Gets the debug flag. |
public String | getDebugLevel() Get the value of debugLevel. |
public boolean | getDepend() Gets the depend flag. |
public boolean | getDeprecation() Gets the deprecation flag. |
public File | getDestdir() Gets the destination directory into which the java source files
should be compiled. |
public String | getEncoding() Gets the java source file encoding name. |
public String | getExecutable() The value of the executable attribute, if any. |
public Path | getExtdirs() Gets the extension directories that will be used during the
compilation. |
public boolean | getFailonerror() Gets the failonerror flag. |
public File[] | getFileList() Gets the list of files to be compiled. |
public boolean | getIncludeantruntime() Gets whether or not the ant classpath is to be included in the classpath. |
public boolean | getIncludejavaruntime() Gets whether or not the java runtime should be included in this
task's classpath. |
public String | getJavacExecutable() The name of the javac executable to use in fork-mode. |
public boolean | getListfiles() Get the listfiles flag. |
public String | getMemoryInitialSize() Gets the memoryInitialSize flag. |
public String | getMemoryMaximumSize() Gets the memoryMaximumSize flag. |
public boolean | getNowarn() Should the -nowarn option be used. |
public boolean | getOptimize() Gets the optimize flag. |
public String | getSource() Get the value of source. |
public Path | getSourcepath() Gets the sourcepath to be used for this compilation. |
public Path | getSrcdir() Gets the source dirs to find the source java files. |
protected String | getSystemJavac() |
public String | getTarget() Gets the target VM that the classes will be compiled for. |
public File | getTempdir() Where Ant should place temporary files. |
public boolean | getVerbose() Gets the verbose flag. |
public boolean | isForkedJavac() |
protected boolean | isJdkCompiler(String compilerImpl) |
protected Path | recreateSrc() Recreate src. |
protected void | resetFileLists() Clear the list of files to be compiled and copied.. |
protected void | scanDir(File srcDir, File destDir, String[] files) Scans the directory looking for source files to be compiled. |
public void | setBootClasspathRef(Reference r) Adds a reference to a classpath defined elsewhere. |
public void | setBootclasspath(Path bootclasspath) Sets the bootclasspath that will be used to compile the classes
against. |
public void | setClasspath(Path classpath) Set the classpath to be used for this compilation. |
public void | setClasspathRef(Reference r) Adds a reference to a classpath defined elsewhere. |
public void | setCompiler(String compiler) Choose the implementation for this particular task. |
public void | setDebug(boolean debug) Indicates whether source should be compiled
with debug information; defaults to off. |
public void | setDebugLevel(String v) Keyword list to be appended to the -g command-line switch.
This will be ignored by all implementations except modern
and classic(ver >= 1.2). |
public void | setDepend(boolean depend) Enables dependency-tracking for compilers
that support this (jikes and classic). |
public void | setDeprecation(boolean deprecation) Indicates whether source should be
compiled with deprecation information; defaults to off. |
public void | setDestdir(File destDir) Set the destination directory into which the Java source
files should be compiled. |
public void | setEncoding(String encoding) Set the Java source file encoding name. |
public void | setExecutable(String forkExec) Sets the name of the javac executable. |
public void | setExtdirs(Path extdirs) Sets the extension directories that will be used during the
compilation. |
public void | setFailonerror(boolean fail) Indicates whether the build will continue
even if there are compilation errors; defaults to true. |
public void | setFork(boolean f) If true, forks the javac compiler. |
public void | setIncludeantruntime(boolean include) If true, includes Ant's own classpath in the classpath. |
public void | setIncludejavaruntime(boolean include) If true, includes the Java runtime libraries in the classpath. |
public void | setListfiles(boolean list) If true, list the source files being handed off to the compiler. |
public void | setMemoryInitialSize(String memoryInitialSize) The initial size of the memory for the underlying VM
if javac is run externally; ignored otherwise. |
public void | setMemoryMaximumSize(String memoryMaximumSize) The maximum size of the memory for the underlying VM
if javac is run externally; ignored otherwise. |
public void | setNowarn(boolean flag) If true, enables the -nowarn option. |
public void | setOptimize(boolean optimize) If true, compiles with optimization enabled. |
public void | setProceed(boolean proceed) |
public void | setSource(String v) Value of the -source command-line switch; will be ignored
by all implementations except modern and jikes. |
public void | setSourcepath(Path sourcepath) Set the sourcepath to be used for this compilation. |
public void | setSourcepathRef(Reference r) Adds a reference to a source path defined elsewhere. |
public void | setSrcdir(Path srcDir) Set the source directories to find the source Java files. |
public void | setTarget(String target) Sets the target VM that the classes will be compiled for. |
public void | setTempdir(File tmpDir) Where Ant should place temporary files. |
public void | setVerbose(boolean verbose) If true, asks the compiler for verbose output. |