org.apache.tools.ant.taskdefs.compilers
public abstract class DefaultCompilerAdapter extends Object implements CompilerAdapter
Since: Ant 1.3
Field Summary | |
---|---|
protected Javac | attributes |
protected Path | bootclasspath |
protected Path | compileClasspath |
protected File[] | compileList |
protected Path | compileSourcepath |
protected boolean | debug |
protected boolean | depend |
protected boolean | deprecation |
protected File | destDir |
protected String | encoding |
protected Path | extdirs |
protected boolean | includeAntRuntime |
protected boolean | includeJavaRuntime |
protected Location | location |
protected static String | lSep |
protected String | memoryInitialSize |
protected String | memoryMaximumSize |
protected boolean | optimize |
protected Project | project |
protected Path | src |
protected String | target |
protected boolean | verbose |
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()
Shall we assume JDK 1.1 command line switches? |
protected boolean | assumeJava12()
Shall we assume JDK 1.2 command line switches? |
protected boolean | assumeJava13()
Shall we assume JDK 1.3 command line switches? |
protected boolean | assumeJava14()
Shall we assume JDK 1.4 command line switches? |
protected boolean | assumeJava15()
Shall we assume JDK 1.5 command line switches? |
protected int | executeExternalCompile(String[] args, int firstFileName)
Do the compile with the specified arguments. |
protected int | executeExternalCompile(String[] args, int firstFileName, boolean quoteFiles)
Do the compile with the specified arguments. |
protected Path | getCompileClasspath()
Builds the compilation classpath.
|
Javac | getJavac()
Get the Javac task instance associated with this compiler adapter
|
protected String | getNoDebugArgument()
The argument the compiler wants to see if the debug attribute
has been set to false.
|
protected Project | getProject() |
protected void | logAndAddFilesToCompile(Commandline cmd)
Logs the compilation parameters, adds the files to compile and logs the
"niceSourceList" |
void | setJavac(Javac attributes)
Set the Javac instance which contains the configured compilation
attributes.
|
protected Commandline | setupJavacCommand() |
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) |
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. |
Deprecated: use org.apache.tools.ant.types.Path#addExtdirs instead
Since: Ant 1.5
Since: Ant 1.5
Since: Ant 1.5
Since: Ant 1.6.3
Returns: true if JDK 1.5
Since: Ant 1.6.3
Parameters: args - arguments to pass to process on command line firstFileName - index of the first source file in args, if the index is negative, no temporary file will ever be created, but this may hit the command line length limit on your system.
Parameters: args - arguments to pass to process on command line firstFileName - index of the first source file in args, if the index is negative, no temporary file will ever be created, but this may hit the command line length limit on your system. quoteFiles - if set to true, filenames containing spaces will be quoted when they appear in the external file. This is necessary when running JDK 1.4's javac and probably others.
Since: Ant 1.6
Returns: the configured Javac task instance used by this adapter.
A return value of null
means no argument at all.
Returns: "-g:none" unless we expect to invoke a JDK 1.1 compiler.
Since: Ant 1.6.3
Since: Ant 1.6
Parameters: attributes a configured Javac task.