Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdt.core
Class JDTCompilerAdapter  view JDTCompilerAdapter download JDTCompilerAdapter.java

java.lang.Object
  extended byorg.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
      extended byorg.eclipse.jdt.core.JDTCompilerAdapter
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.compilers.CompilerAdapter

public class JDTCompilerAdapter
extends org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter

Ant 1.5 compiler adapter for the Eclipse Java compiler. This adapter permits the Eclipse Java compiler to be used with the 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/ .

Since:
2.0

Field Summary
private static java.lang.String compilerClass
           
(package private)  java.lang.String logFileName
           
 
Fields inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, location, lSep, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose
 
Constructor Summary
JDTCompilerAdapter()
           
 
Method Summary
private  void addExtdirs(org.apache.tools.ant.types.Path extDirs, org.apache.tools.ant.types.Path classpath)
          Emulation of extdirs feature in java >= 1.2.
 boolean execute()
          Performs a compile using the JDT batch compiler
protected  org.apache.tools.ant.types.Commandline setupJavacCommand()
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, executeExternalCompile, executeExternalCompile, getCompileClasspath, getJavac, getProject, logAndAddFilesToCompile, setJavac, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compilerClass

private static java.lang.String compilerClass

logFileName

java.lang.String logFileName
Constructor Detail

JDTCompilerAdapter

public JDTCompilerAdapter()
Method Detail

execute

public boolean execute()
                throws org.apache.tools.ant.BuildException
Performs a compile using the JDT batch compiler


setupJavacCommand

protected org.apache.tools.ant.types.Commandline setupJavacCommand()
                                                            throws org.apache.tools.ant.BuildException

addExtdirs

private void addExtdirs(org.apache.tools.ant.types.Path extDirs,
                        org.apache.tools.ant.types.Path classpath)
Emulation of extdirs feature in java >= 1.2. This method adds all files in the given directories (but not in sub-directories!) to the classpath, so that you don't have to specify them all one by one.