| java.lang.Object org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
All known Subclasses: org.apache.tools.ant.taskdefs.compilers.JavacExternal, org.apache.tools.ant.taskdefs.compilers.Gcj, org.apache.tools.ant.taskdefs.compilers.Kjc, org.apache.tools.ant.taskdefs.compilers.AptExternalCompilerAdapter, org.apache.tools.ant.taskdefs.compilers.Jikes, org.apache.tools.ant.taskdefs.compilers.AptCompilerAdapter, org.apache.tools.ant.taskdefs.compilers.Javac13, org.apache.tools.ant.taskdefs.compilers.Jvc, org.apache.tools.ant.taskdefs.compilers.Javac12, org.apache.tools.ant.taskdefs.compilers.Sj,
DefaultCompilerAdapter | abstract public class DefaultCompilerAdapter implements CompilerAdapter(Code) | | This is the default implementation for the CompilerAdapter interface.
Currently, this is a cut-and-paste of the original javac task.
since: Ant 1.3 |
Method Summary | |
protected void | addCurrentCompilerArgs(Commandline cmd) Adds the command line arguments specific to the current implementation. | protected void | addExtdirsToClasspath(Path classpath) | protected boolean | assumeJava11() | protected boolean | assumeJava12() | protected boolean | assumeJava13() | protected boolean | assumeJava14() | protected boolean | assumeJava15() | protected boolean | assumeJava16() | protected int | executeExternalCompile(String[] args, int firstFileName) Do the compile with the specified arguments.
Parameters: args - - arguments to pass to process on command line Parameters: firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem. | protected int | executeExternalCompile(String[] args, int firstFileName, boolean quoteFiles) Do the compile with the specified arguments.
Parameters: args - - arguments to pass to process on command line Parameters: firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem. Parameters: quoteFiles - - if set to true, filenames containingspaces will be quoted when they appear in the external file.This is necessary when running JDK 1.4's javac and probablyothers. | protected Path | getBootClassPath() Combines a user specified bootclasspath with the system
bootclasspath taking build.sysclasspath into account. | protected Path | getCompileClasspath() Builds the compilation classpath. | public Javac | getJavac() | protected String | getNoDebugArgument() The argument the compiler wants to see if the debug attribute
has been set to false. | protected Project | getProject() Get the project this compiler adapter was created in. | protected void | logAndAddFilesToCompile(Commandline cmd) | public void | setJavac(Javac attributes) Set the Javac instance which contains the configured compilation
attributes. | protected Commandline | setupJavacCommand() Set up the command line. | protected Commandline | setupJavacCommand(boolean debugLevelCheck) Does the command line argument processing for classic and adds
the files to compile as well. | protected Commandline | setupJavacCommandlineSwitches(Commandline cmd) Get the command line arguments for the switches. | protected Commandline | setupJavacCommandlineSwitches(Commandline cmd, boolean useDebugLevel) Does the command line argument processing common to classic and
modern. | protected Commandline | setupModernJavacCommand() Does the command line argument processing for modern and adds
the files to compile as well. | protected Commandline | setupModernJavacCommandlineSwitches(Commandline cmd) Does the command line argument processing for modern. |
compileClasspath | protected Path compileClasspath(Code) | | |
compileSourcepath | protected Path compileSourcepath(Code) | | |
debug | protected boolean debug(Code) | | |
depend | protected boolean depend(Code) | | |
deprecation | protected boolean deprecation(Code) | | |
includeAntRuntime | protected boolean includeAntRuntime(Code) | | |
includeJavaRuntime | protected boolean includeJavaRuntime(Code) | | |
optimize | protected boolean optimize(Code) | | |
verbose | protected boolean verbose(Code) | | |
addCurrentCompilerArgs | protected void addCurrentCompilerArgs(Commandline cmd)(Code) | | Adds the command line arguments specific to the current implementation.
Parameters: cmd - the command line to use |
addExtdirsToClasspath | protected void addExtdirsToClasspath(Path classpath)(Code) | | Add extdirs to classpath
Parameters: classpath - the classpath to use |
assumeJava11 | protected boolean assumeJava11()(Code) | | Shall we assume JDK 1.1 command line switches?
true if jdk 1.1 since: Ant 1.5 |
assumeJava12 | protected boolean assumeJava12()(Code) | | Shall we assume JDK 1.2 command line switches?
true if jdk 1.2 since: Ant 1.5 |
assumeJava13 | protected boolean assumeJava13()(Code) | | Shall we assume JDK 1.3 command line switches?
true if jdk 1.3 since: Ant 1.5 |
assumeJava14 | protected boolean assumeJava14()(Code) | | Shall we assume JDK 1.4 command line switches?
true if jdk 1.4 since: Ant 1.6.3 |
assumeJava15 | protected boolean assumeJava15()(Code) | | Shall we assume JDK 1.5 command line switches?
true if JDK 1.5 since: Ant 1.6.3 |
assumeJava16 | protected boolean assumeJava16()(Code) | | Shall we assume JDK 1.6 command line switches?
true if JDK 1.6 since: Ant 1.7 |
executeExternalCompile | protected int executeExternalCompile(String[] args, int firstFileName)(Code) | | Do the compile with the specified arguments.
Parameters: args - - arguments to pass to process on command line Parameters: firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem. the exit code of the compilation |
executeExternalCompile | protected int executeExternalCompile(String[] args, int firstFileName, boolean quoteFiles)(Code) | | Do the compile with the specified arguments.
Parameters: args - - arguments to pass to process on command line Parameters: firstFileName - - index of the first source file in args,if the index is negative, no temporary file will ever becreated, but this may hit the command line length limit on yoursystem. Parameters: quoteFiles - - if set to true, filenames containingspaces will be quoted when they appear in the external file.This is necessary when running JDK 1.4's javac and probablyothers. the exit code of the compilation since: Ant 1.6 |
getBootClassPath | protected Path getBootClassPath()(Code) | | Combines a user specified bootclasspath with the system
bootclasspath taking build.sysclasspath into account.
a non-null Path instance that combines the userspecified and the system bootclasspath. |
getCompileClasspath | protected Path getCompileClasspath()(Code) | | Builds the compilation classpath.
the compilation class path |
getJavac | public Javac getJavac()(Code) | | Get the Javac task instance associated with this compiler adapter
the configured Javac task instance used by this adapter. |
getNoDebugArgument | protected String getNoDebugArgument()(Code) | | The argument the compiler wants to see if the debug attribute
has been set to false.
A return value of null means no argument at all.
"-g:none" unless we expect to invoke a JDK 1.1 compiler. since: Ant 1.6.3 |
getProject | protected Project getProject()(Code) | | Get the project this compiler adapter was created in.
the owner project since: Ant 1.6 |
logAndAddFilesToCompile | protected void logAndAddFilesToCompile(Commandline cmd)(Code) | | Logs the compilation parameters, adds the files to compile and logs the
"niceSourceList"
Parameters: cmd - the command line |
setJavac | public void setJavac(Javac attributes)(Code) | | Set the Javac instance which contains the configured compilation
attributes.
Parameters: attributes - a configured Javac task. |
setupJavacCommand | protected Commandline setupJavacCommand()(Code) | | Set up the command line.
the command line |
setupJavacCommand | protected Commandline setupJavacCommand(boolean debugLevelCheck)(Code) | | Does the command line argument processing for classic and adds
the files to compile as well.
Parameters: debugLevelCheck - if true set the debug level with the -g switch the command line |
setupJavacCommandlineSwitches | protected Commandline setupJavacCommandlineSwitches(Commandline cmd)(Code) | | Get the command line arguments for the switches.
Parameters: cmd - the command line the command line |
setupJavacCommandlineSwitches | protected Commandline setupJavacCommandlineSwitches(Commandline cmd, boolean useDebugLevel)(Code) | | Does the command line argument processing common to classic and
modern. Doesn't add the files to compile.
Parameters: cmd - the command line Parameters: useDebugLevel - if true set set the debug level with the -g switch the command line |
setupModernJavacCommand | protected Commandline setupModernJavacCommand()(Code) | | Does the command line argument processing for modern and adds
the files to compile as well.
the command line |
setupModernJavacCommandlineSwitches | protected Commandline setupModernJavacCommandlineSwitches(Commandline cmd)(Code) | | Does the command line argument processing for modern. Doesn't
add the files to compile.
Parameters: cmd - the command line the command line |
|
|