Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core
Class JDTCompilerAdapter

java.lang.Object
  extended by org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
      extended by 
org.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 https://jakarta.apache.org/ant/ .

Since:
2.0

Field Summary
 
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
 boolean execute ()
          Performs a compile using the JDT batch compiler
protected  void logAndAddFilesToCompile (org.apache.tools.ant.types.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  org.apache.tools.ant.types.Commandline setupJavacCommand ()
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, assumeJava16, executeExternalCompile, executeExternalCompile, getBootClassPath, getCompileClasspath, getJavac, getNoDebugArgument, getProject, setJavac, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitches
 
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 org.apache.tools.ant.BuildException
Performs a compile using the JDT batch compiler

Returns:
boolean true if the compilation is ok, false otherwise
Throws:
org.apache.tools.ant.BuildException - if anything wrong happen during the compilation

setupJavacCommand

protected org.apache.tools.ant.types.Commandline setupJavacCommand()
                                                            throws org.apache.tools.ant.BuildException
Overrides:
setupJavacCommand in class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
Throws:
org.apache.tools.ant.BuildException

logAndAddFilesToCompile

protected void logAndAddFilesToCompile(org.apache.tools.ant.types.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

Overrides:
logAndAddFilesToCompile in class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
Parameters:
cmd - the given command line

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire