Package org.codehaus.janino
Class AntCompilerAdapter
java.lang.Object
DefaultCompilerAdapter
org.codehaus.janino.AntCompilerAdapter
public class AntCompilerAdapter
extends DefaultCompilerAdapter
A simple
org.apache.tools.ant.taskdefs.compilers.CompilerAdapter for the "ant" tool
that silently ignores most of the configuration parameters and attempts to compile all given
source files into class files.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute()Compile all source files inDefaultCompilerAdapter.compileListindividually and write class files in directoryDefaultCompilerAdapter.destDir.
-
Constructor Details
-
AntCompilerAdapter
public AntCompilerAdapter()
-
-
Method Details
-
execute
public boolean execute()Compile all source files inDefaultCompilerAdapter.compileListindividually and write class files in directoryDefaultCompilerAdapter.destDir.The following fields of
DefaultCompilerAdapterare honored:DefaultCompilerAdapter.compileList- the set of Java™ source files to compileDefaultCompilerAdapter.destDir- where to store the class filesDefaultCompilerAdapter.compileSourcepath- where to look for more Java™ source filesDefaultCompilerAdapter.compileClasspath- where to look for required classesDefaultCompilerAdapter.extdirsDefaultCompilerAdapter.bootclasspathDefaultCompilerAdapter.encoding- how the Java™ source files are encodedDefaultCompilerAdapter.verboseDefaultCompilerAdapter.debugorg.apache.tools.ant.taskdefs.Javac.getDebugLevel()DefaultCompilerAdapter.src
DefaultCompilerAdapterare not honored at this time:DefaultCompilerAdapter.dependDefaultCompilerAdapter.deprecationDefaultCompilerAdapter.includeAntRuntimeDefaultCompilerAdapter.includeJavaRuntimeDefaultCompilerAdapter.locationDefaultCompilerAdapter.optimizeDefaultCompilerAdapter.target
- Returns:
- "true" on success
-