public class JDTCompilerAdapter
extends org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
javac task in Ant scripts. In order
to use it, just set the property build.compiler as follows:
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
For more information on Ant check out the website at http://jakarta.apache.org/ant/ .
attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, location, lSep, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose| Constructor and Description |
|---|
JDTCompilerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Performs a compile using the JDT batch compiler
|
protected void |
logAndAddFilesToCompile(org.apache.tools.ant.types.Commandline cmd)
Modified from base class, Logs the compilation parameters, adds the files
to compile and logs the "niceSourceList"
Appends encoding information at the end of arguments
|
protected org.apache.tools.ant.types.Commandline |
setupJavacCommand() |
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, executeExternalCompile, executeExternalCompile, getCompileClasspath, getJavac, getNoDebugArgument, getProject, setJavac, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitchespublic boolean execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if anything wrong happen during the compilationprotected org.apache.tools.ant.types.Commandline setupJavacCommand()
throws org.apache.tools.ant.BuildException
setupJavacCommand in class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapterorg.apache.tools.ant.BuildExceptionprotected void logAndAddFilesToCompile(org.apache.tools.ant.types.Commandline cmd)
logAndAddFilesToCompile in class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdaptercmd - the given command lineCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.