Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » compilers » [javadoc | source]
org.apache.tools.ant.taskdefs.compilers
abstract public class: DefaultCompilerAdapter [javadoc | source]
java.lang.Object
   org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter

All Implemented Interfaces:
    CompilerAdapter

Direct Known Subclasses:
    ClasspathHelper, AptCompilerAdapter, JavacExternal, Javac13, Sj, AptExternalCompilerAdapter, Kjc, Gcj, Javac12, Jvc, Jikes

This is the default implementation for the CompilerAdapter interface. Currently, this is a cut-and-paste of the original javac task.
Field Summary
protected  Path src     
protected  File destDir     
protected  String encoding     
protected  boolean debug     
protected  boolean optimize     
protected  boolean deprecation     
protected  boolean depend     
protected  boolean verbose     
protected  String target     
protected  Path bootclasspath     
protected  Path extdirs     
protected  Path compileClasspath     
protected  Path compileSourcepath     
protected  Project project     
protected  Location location     
protected  boolean includeAntRuntime     
protected  boolean includeJavaRuntime     
protected  String memoryInitialSize     
protected  String memoryMaximumSize     
protected  File[] compileList     
protected  Javac attributes     
protected static final  String lSep     
Method from org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter Summary:
addCurrentCompilerArgs,   addExtdirsToClasspath,   assumeJava11,   assumeJava12,   assumeJava13,   assumeJava14,   assumeJava15,   assumeJava16,   executeExternalCompile,   executeExternalCompile,   getBootClassPath,   getCompileClasspath,   getJavac,   getNoDebugArgument,   getProject,   logAndAddFilesToCompile,   setJavac,   setupJavacCommand,   setupJavacCommand,   setupJavacCommandlineSwitches,   setupJavacCommandlineSwitches,   setupModernJavacCommand,   setupModernJavacCommandlineSwitches
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter Detail:
 protected  void addCurrentCompilerArgs(Commandline cmd) 
    Adds the command line arguments specific to the current implementation.
 protected  void addExtdirsToClasspath(Path classpath) 
Deprecated! since - 1.5.x. Use org.apache.tools.ant.types.Path#addExtdirs instead.

    Add extdirs to 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 boolean assumeJava16() 
    Shall we assume JDK 1.6 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 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() 
    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.

    A return value of null means no argument at all.

 protected Project getProject() 
    Get the project this compiler adapter was created in.
 protected  void logAndAddFilesToCompile(Commandline cmd) 
    Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"
 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. Doesn't add the files to compile.
 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. Doesn't add the files to compile.