When this task executes, it will recursively scan the sourcedir and destdir looking for Java source files to compile. This task makes its compile decision based on timestamp.
| Modifier and Type | Class and Description |
|---|---|
| public class | Javac.
Adds an "compiler" attribute to Commandline$Attribute used to filter command line attributes based on the current implementation. |
| Modifier and Type | Field and Description |
|---|---|
| private Path | |
| private Path | |
| protected File[] | |
| private Path | |
| private boolean | |
| private boolean | |
| private String | |
| private boolean | |
| private boolean | |
| private File | |
| private String | |
| private String | |
| private Path | |
| private FacadeTaskHelper | |
| private static final String | |
| protected boolean | |
| private static final FileUtils | |
| private boolean | |
| private String | |
| private static final char | |
| private static final char | |
| private static final char | |
| private Boolean | |
| private boolean | |
| private boolean | |
| protected boolean | |
| private String | |
| private String | |
| private static final String | |
| private Path | |
| private Path | |
| private File | |
| private CompilerAdapter | |
| private boolean | |
| private boolean | |
| private static final byte[] | |
| private static final byte[] | |
| private Map | |
| private String | |
| private String | |
| private Path | |
| private String | |
| private boolean | |
| private File | |
| private String | |
| private Path | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private String | |
| protected void | checkParameters()
Check that all required attributes have been set and nothing silly has been entered. |
| private void | |
| private void | |
| protected void | |
| public Path | |
| public Path | |
| public Javac. | Returns: a ImplementationSpecificArgument to be configuredAdds an implementation specific command-line argument. |
| public Path | Returns: PathThe classpath to use when loading the compiler implementation if it is not a built-in one. |
| public Path | |
| public Path | |
| public Path | Returns: a modulesourcepath to be configuredAdds a path to modulesourcepath. |
| public Path | |
| public Path | |
| public Path | Returns: an upgrademodulepath to be configuredAdds a path to the upgrademodulepath. |
| public void | |
| private static Collection | Returns: the possible alternativesthe entry to expand groups in element)Expands the groups in the modulesourcepath entry to alternatives. |
| private static void | findModules(final File
the project root root, String the expanded modulesourcepath entry pattern, final Map<String, Collection<File>> the map to put modules into collector)Finds modules in the expanded modulesourcepath entry. |
| private static void | findModules(final File
the project root root, final String the path to modules folder pathToModule, final String the path in module to source folder pathInModule, final Map<String, Collection<File>> the map to put modules into collector)Finds modules in the expanded modulesourcepath entry. |
| private String[] | |
| private void | generateMissingPackageInfoClasses(final File dest)
Ensure that every |
| private String | |
| public Path | Returns: the boot pathGets the bootclasspath that will be used to compile the classes against. |
| public Path | |
| public String | |
| public String | |
| public String[] | Returns: array of command line arguments, guaranteed to be non-null.Get the additional implementation specific command line arguments. |
| public boolean | |
| public String | |
| public boolean | |
| public boolean | |
| public File | Returns: the destination directoryGets the destination directory into which the java source files should be compiled. |
| public String | |
| public String | Returns: the name of the java executableThe value of the executable attribute, if any. |
| public Path | Returns: the extension directories as a pathGets the extension directories that will be used during the compilation. |
| public boolean | |
| public File[] | |
| private static int | Returns: return the index of an enclosing brace of the group or -1 if not foundthe element to find the enclosing brace in element, final int the index of the opening brace. start)Finds the index of an enclosing brace of the group. |
| public boolean | Returns: whether or not the ant classpath is to be included in the classpathGets whether or not the ant classpath is to be included in the classpath. |
| public boolean | Returns: the includejavaruntime attributeGets whether or not the java runtime should be included in this task's classpath. |
| public String | Returns: the name of the javac executableThe name of the javac executable to use in fork-mode. |
| public boolean | |
| public String | |
| public String | |
| public Path | |
| public Path | Returns: the modulesourcepathGets the modulesourcepath to be used for this compilation. |
| public File | Returns: where to place generated native header filesGets the destination directory into which the generated native header files should be placed. |
| public boolean | |
| public boolean | |
| public String | Returns: the value of the release attributeGets the version to use for the |
| public String | |
| public Path | |
| public Path | Returns: the source directories as a pathGets the source dirs to find the source java files. |
| protected String | |
| public String | |
| public boolean | Returns: true if compilation succeeded, or was not necessary, false if the compilation failed.Get the result of the javac task (success or failure). |
| public File | |
| public Path | Returns: the upgrademodulepathGets the upgrademodulepath to be used for this compilation. |
| public boolean | |
| private static boolean | |
| public boolean | Returns: true if this is a forked invocationIs this a forked invocation of JDK's javac? |
| public boolean | |
| protected boolean | Returns: true if compilerImpl is "modern", "classic", "javac1.1", "javac1.2", "javac1.3", "javac1.4", "javac1.5", "javac1.6", "javac1.7", "javac1.8", "javac1.9", "javac9" or "javac10+".the name of the compiler implementation compilerImpl)Is the compiler implementation a jdk compiler |
| private void | |
| protected Path | |
| protected void | |
| private static Collection | Returns: the possible alternativesthe group to resolve group)Resolves the group to alternatives. |
| private static Map | Returns: a mapping from module name to module source rootsthe project directory projectDir, final String the modulesourcepath elemement element)Resolves the modulesourcepath element possibly containing groups and module marks to module names and source roots. |
| protected void | |
| public void | setBootclasspath(final Path
a path to use as a boot class path (may be more
than one) bootclasspath)Sets the bootclasspath that will be used to compile the classes against. |
| public void | setBootClasspathRef(final Reference
a reference to a classpath r)Adds a reference to a classpath defined elsewhere. |
| public void | setClasspath(final Path
an Ant Path object containing the compilation classpath. classpath)Set the classpath to be used for this compilation. |
| public void | setClasspathRef(final Reference
a reference to a classpath r)Adds a reference to a classpath defined elsewhere. |
| public void | setCompiler(final String
the name of the compiler compiler)Choose the implementation for this particular task. |
| public void | setCreateMissingPackageInfoClass(final boolean
boolean b)Whether package-info.class files will be created by Ant matching package-info.java files that have been compiled but didn't create class files themselves. |
| public void | setDebug(final boolean
if true compile with debug information debug)Indicates whether source should be compiled with debug information; defaults to off. |
| public void | setDebugLevel(final String
Value to assign to debugLevel. v)Keyword list to be appended to the -g command-line switch. |
| public void | setDepend(final boolean
if true enable dependency-tracking depend)Enables dependency-tracking for compilers that support this (jikes and classic). |
| public void | setDeprecation(final boolean
if true turn on deprecation information deprecation)Indicates whether source should be compiled with deprecation information; defaults to off. |
| public void | setDestdir(final File
the destination director destDir)Set the destination directory into which the Java source files should be compiled. |
| public void | |
| public void | setErrorProperty(final String
the property name to use. errorProperty)The property to set on compilation failure. |
| public void | setExecutable(final String
the name of the executable forkExec)Sets the name of the javac executable. |
| public void | setExtdirs(final Path
a path extdirs)Sets the extension directories that will be used during the compilation. |
| public void | setFailonerror(final boolean
if true halt the build on failure fail)Indicates whether the build will continue even if there are compilation errors; defaults to true. |
| public void | |
| public void | setIncludeantruntime(final boolean
if true, includes Ant's own classpath in the classpath include)If true, includes Ant's own classpath in the classpath. |
| public void | setIncludeDestClasses(final boolean
the value to use. includeDestClasses)This property controls whether to include the destination classes directory in the classpath given to the compiler. |
| public void | setIncludejavaruntime(final boolean
if true, includes the Java runtime libraries in the classpath include)If true, includes the Java runtime libraries in the classpath. |
| public void | setListfiles(final boolean
if true list the source files list)If true, list the source files being handed off to the compiler. |
| public void | setMemoryInitialSize(final String
string to pass to VM memoryInitialSize)The initial size of the memory for the underlying VM if javac is run externally; ignored otherwise. |
| public void | setMemoryMaximumSize(final String
string to pass to VM memoryMaximumSize)The maximum size of the memory for the underlying VM if javac is run externally; ignored otherwise. |
| public void | setModulepath(final Path
an Ant Path object containing the modulepath. mp)Set the modulepath to be used for this compilation. |
| public void | setModulepathRef(final Reference
a reference to a modulepath r)Adds a reference to a modulepath defined elsewhere. |
| public void | setModulesourcepath(final Path
the modulesourcepath msp)Set the modulesourcepath to be used for this compilation. |
| public void | setModulesourcepathRef(final Reference
a reference to a modulesourcepath r)Adds a reference to a modulesourcepath defined elsewhere. |
| public void | setNativeHeaderDir(final File
where to place generated native header files nhDir)Set the destination directory into which the generated native header files should be placed. |
| public void | |
| public void | setOptimize(final boolean
if true compile with optimization enabled optimize)If true, compiles with optimization enabled. |
| public void | |
| public void | setRelease(final String
the value of the release attribute release)Sets the version to use for the |
| public void | |
| public void | setSourcepath(final Path
the source path sourcepath)Set the sourcepath to be used for this compilation. |
| public void | setSourcepathRef(final Reference
a reference to a source path r)Adds a reference to a source path defined elsewhere. |
| public void | |
| public void | |
| public void | |
| public void | setUpdatedProperty(final String
the property name to use. updatedProperty)The property to set on compilation success. |
| public void | setUpgrademodulepath(final Path
an Ant Path object containing the upgrademodulepath. ump)Set the upgrademodulepath to be used for this compilation. |
| public void | setUpgrademodulepathRef(final Reference
a reference to an upgrademodulepath r)Adds a reference to the upgrademodulepath defined elsewhere. |
| public void | setVerbose(final boolean
if true, asks the compiler for verbose output verbose)If true, asks the compiler for verbose output. |