Package org.codehaus.janino
Class AntCompilerAdapter
- java.lang.Object
-
- org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
-
- org.codehaus.janino.AntCompilerAdapter
-
- All Implemented Interfaces:
org.apache.tools.ant.taskdefs.compilers.CompilerAdapter,org.apache.tools.ant.taskdefs.compilers.CompilerAdapterExtension
public class AntCompilerAdapter extends org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapterA simpleCompilerAdapterfor the "ant" tool that silently ignores most of the configuration parameters and attempts to compile all given source files into class files.
-
-
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, modulepath, moduleSourcepath, optimize, project, release, src, target, upgrademodulepath, verbose
-
-
Constructor Summary
Constructors Constructor Description AntCompilerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()Compile all source files inDefaultCompilerAdapter.compileListindividually and write class files in directoryDefaultCompilerAdapter.destDir.-
Methods inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, assumeJava16, assumeJava17, assumeJava18, assumeJava19, assumeJava9, assumeJava9Plus, executeExternalCompile, executeExternalCompile, getBootClassPath, getCompileClasspath, getJavac, getModulepath, getModulesourcepath, getNoDebugArgument, getProject, getSupportedFileExtensions, getUpgrademodulepath, logAndAddFilesToCompile, setJavac, setupJavacCommand, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitches
-
-
-
-
Method Detail
-
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
-
-