org.eclipse.jdt.core
Class JDTCompilerAdapter

java.lang.Object
  extended by DefaultCompilerAdapter
      extended by org.eclipse.jdt.core.JDTCompilerAdapter

public class JDTCompilerAdapter
extends 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

Constructor Summary
JDTCompilerAdapter()
           
 
Method Summary
 boolean execute()
          Performs a compile using the JDT batch compiler
protected  void logAndAddFilesToCompile(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  Commandline setupJavacCommand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDTCompilerAdapter

public JDTCompilerAdapter()
Method Detail

execute

public boolean execute()
                throws BuildException
Performs a compile using the JDT batch compiler

Returns:
boolean true if the compilation is ok, false otherwise
Throws:
BuildException - if anything wrong happen during the compilation

setupJavacCommand

protected Commandline setupJavacCommand()
                                 throws BuildException
Throws:
BuildException

logAndAddFilesToCompile

protected void logAndAddFilesToCompile(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

Parameters:
cmd - the given command line


Copyright © 2012. All Rights Reserved.