| Modifier and Type | Field and Description |
|---|---|
| protected Javac | |
| protected Path | |
| private static final int | |
| protected Path | |
| protected File[] | |
| protected Path | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected File | |
| protected String | |
| protected Path | |
| private static final FileUtils | |
| protected boolean | |
| protected boolean | |
| private static final Pattern | |
| protected Location | |
| protected static final String | lSep
Deprecated
|
| protected String | |
| protected String | |
| protected Path | |
| protected Path | |
| protected boolean | |
| protected Project | |
| protected String | |
| protected Path | |
| protected String | |
| protected Path | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addCurrentCompilerArgs(final Commandline
the command line to use cmd)Adds the command line arguments specific to the current implementation. |
| protected void | addExtdirsToClasspath(final Path
the classpath to use classpath)
Deprecated
since 1.5.x.
Use org.apache.tools.ant.types.Path#addExtdirs instead.
Add extdirs to classpath
|
| private String | adjustSourceValue(final String source)
Turn the task's attribute for -source into something that is understood by all javac's after 1.4. |
| protected boolean | |
| protected boolean | Returns: true if jdk 1.1
Deprecated
since Ant 1.10.7, use assumeJava1_1Plus, if necessary combined with !assumeJava1_2Plus
Shall we assume JDK 1.1 command line switches?
|
| protected boolean | Returns: true if jdk 1.2
Deprecated
since Ant 1.10.7, use assumeJava1_2Plus, if necessary combined with !assumeJava1_3Plus
Shall we assume JDK 1.2 command line switches?
|
| protected boolean | Returns: true if jdk 1.3
Deprecated
since Ant 1.10.7, use assumeJava1_3Plus, if necessary combined with !assumeJava1_4Plus
Shall we assume JDK 1.3 command line switches?
|
| protected boolean | Returns: true if jdk 1.4
Deprecated
since Ant 1.10.7, use assumeJava1_4Plus, if necessary combined with !assumeJava1_5Plus
Shall we assume JDK 1.4 command line switches?
|
| protected boolean | Returns: true if JDK 1.5
Deprecated
since Ant 1.10.7, use assumeJava1_5Plus, if necessary combined with !assumeJava1_6Plus
Shall we assume JDK 1.5 command line switches?
|
| protected boolean | Returns: true if JDK 1.6
Deprecated
since Ant 1.10.7, use assumeJava1_6Plus, if necessary combined with !assumeJava1_7Plus
Shall we assume JDK 1.6 command line switches?
|
| protected boolean | Returns: true if JDK 1.7
Deprecated
since Ant 1.10.7, use assumeJava1_7Plus, if necessary combined with !assumeJava1_8Plus
Shall we assume JDK 1.7 command line switches?
|
| protected boolean | Returns: true if JDK 1.8
Deprecated
since Ant 1.10.7, use assumeJava1_8Plus, if necessary combined with !assumeJava9Plus
Shall we assume JDK 1.8 command line switches?
|
| protected boolean | Returns: true if JDK 9
Deprecated
use #assumeJava9 instead
Shall we assume JDK 9 command line switches?
|
| protected boolean | Returns: true if jdk 1.1 and aboveShall we assume JDK 1.1+ command line switches? |
| protected boolean | Returns: true if jdk 1.2 and aboveShall we assume JDK 1.2+ command line switches? |
| protected boolean | Returns: true if jdk 1.3 and aboveShall we assume JDK 1.3+ command line switches? |
| protected boolean | Returns: true if jdk 1.4 and aboveShall we assume JDK 1.4+ command line switches? |
| protected boolean | Returns: true if jdk 1.5 and aboveShall we assume JDK 1.5+ command line switches? |
| protected boolean | Returns: true if jdk 1.6 and aboveShall we assume JDK 1.6+ command line switches? |
| protected boolean | Returns: true if jdk 1.7 and aboveShall we assume JDK 1.7+ command line switches? |
| protected boolean | Returns: true if jdk 1.8 and aboveShall we assume JDK 1.8+ command line switches? |
| protected boolean | Returns: true if JDK 9
Deprecated
since Ant 1.10.7, use assumeJava9Plus, in the future if necessary combined with !assumeJava10Plus
Shall we assume JDK 9 command line switches?
|
| protected boolean | |
| private boolean | assumeJavaXY(final String javacXY, final String javaEnvVersionXY)
Shall we assume command line switches for the given version of Java? |
| protected int | Returns: the exit code of the compilation- arguments to pass to process on command line args, final int - index of the first source file in args,
if the index is negative, no temporary file will ever be
created, but this may hit the command line length limit on your
system. firstFileName)Do the compile with the specified arguments. |
| protected int | Returns: the exit code of the compilation- arguments to pass to process on command line args, final int - index of the first source file in args,
if the index is negative, no temporary file will ever be
created, but this may hit the command line length limit on your
system. firstFileName, final boolean - if set to true, filenames containing
spaces will be quoted when they appear in the external file.
This is necessary when running JDK 1.4's javac and probably
others. quoteFiles)Do the compile with the specified arguments. |
| protected Path | Returns: a non-null Path instance that combines the user specified and the system bootclasspath.Combines a user specified bootclasspath with the system bootclasspath taking build.sysclasspath into account. |
| protected Path | |
| private String | getDefaultSource()
A string that describes the default value for -source of the selected JDK's javac. |
| public Javac | Returns: the configured Javac task instance used by this adapter.Get the Javac task instance associated with this compiler adapter |
| protected Path | |
| protected Path | Returns: the modulesourcepathBuilds the modulesourcepath for multi module compilation. |
| protected String | Returns: "-g:none" unless we expect to invoke a JDK 1.1 compiler.The argument the compiler wants to see if the debug attribute has been set to false. |
| protected Project | |
| public String[] | getSupportedFileExtensions()
Implements org. |
| protected Path | |
| protected void | logAndAddFilesToCompile(final Commandline
the command line cmd)Logs the compilation parameters, adds the files to compile and logs the "niceSourceList" |
| private boolean | mustSetSourceForTarget(String
the -target value, must not be null t)Whether the selected -target is known to be incompatible with the default -source value of the selected JDK's javac. |
| private void | |
| public void | setJavac(final Javac
a configured Javac task. attributes)Implements org. |
| protected Commandline | |
| protected Commandline | Returns: the command lineif true set the debug level with the -g switch debugLevelCheck)Does the command line argument processing for classic and adds the files to compile as well. |
| protected Commandline | Returns: the command linethe command line cmd)Get the command line arguments for the switches. |
| protected Commandline | Returns: the command linethe command line cmd, final boolean if true set set the debug level with the -g switch useDebugLevel)Does the command line argument processing common to classic and modern. |
| protected Commandline | Returns: the command lineDoes the command line argument processing for modern and adds the files to compile as well. |
| protected Commandline | Returns: the command linethe command line cmd)Does the command line argument processing for modern. |
| attributes | back to summary |
|---|---|
| protected Javac attributes | |
| bootclasspath | back to summary |
|---|---|
| protected Path bootclasspath | |
| COMMAND_LINE_LIMIT | back to summary |
|---|---|
| private static final int COMMAND_LINE_LIMIT | |
| compileClasspath | back to summary |
|---|---|
| protected Path compileClasspath | |
| compileList | back to summary |
|---|---|
| protected File[] compileList | |
| compileSourcepath | back to summary |
|---|---|
| protected Path compileSourcepath | |
| debug | back to summary |
|---|---|
| protected boolean debug | |
| depend | back to summary |
|---|---|
| protected boolean depend | |
| deprecation | back to summary |
|---|---|
| protected boolean deprecation | |
| destDir | back to summary |
|---|---|
| protected File destDir | |
| encoding | back to summary |
|---|---|
| protected String encoding | |
| extdirs | back to summary |
|---|---|
| protected Path extdirs | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS | |
| includeAntRuntime | back to summary |
|---|---|
| protected boolean includeAntRuntime | |
| includeJavaRuntime | back to summary |
|---|---|
| protected boolean includeJavaRuntime | |
| JAVAC_ARG_FILE_CHARS_TO_QUOTE | back to summary |
|---|---|
| private static final Pattern JAVAC_ARG_FILE_CHARS_TO_QUOTE | |
| location | back to summary |
|---|---|
| protected Location location | |
| lSep | back to summary |
|---|---|
| protected static final String lSep
Deprecated
| |
| memoryInitialSize | back to summary |
|---|---|
| protected String memoryInitialSize | |
| memoryMaximumSize | back to summary |
|---|---|
| protected String memoryMaximumSize | |
| modulepath | back to summary |
|---|---|
| protected Path modulepath | |
| moduleSourcepath | back to summary |
|---|---|
| protected Path moduleSourcepath | |
| optimize | back to summary |
|---|---|
| protected boolean optimize | |
| project | back to summary |
|---|---|
| protected Project project | |
| release | back to summary |
|---|---|
| protected String release | |
| src | back to summary |
|---|---|
| protected Path src | |
| target | back to summary |
|---|---|
| protected String target | |
| upgrademodulepath | back to summary |
|---|---|
| protected Path upgrademodulepath | |
| verbose | back to summary |
|---|---|
| protected boolean verbose | |
| DefaultCompilerAdapter | back to summary |
|---|---|
| public DefaultCompilerAdapter() | |
| addCurrentCompilerArgs | back to summary |
|---|---|
| protected void addCurrentCompilerArgs(final Commandline cmd) Adds the command line arguments specific to the current implementation.
| |
| addExtdirsToClasspath | back to summary |
|---|---|
| protected void addExtdirsToClasspath(final Path classpath)
Deprecated since 1.5.x. Use org.apache.tools.ant.types.Path#addExtdirs instead. Add extdirs to classpath
| |
| adjustSourceValue | back to summary |
|---|---|
| private String adjustSourceValue(final String source) Turn the task's attribute for -source into something that is understood by all javac's after 1.4. support for -source 1.1 and -source 1.2 has been added with JDK 1.4.2 but isn't present in 1.5.0+ | |
| assumeJava10Plus | back to summary |
|---|---|
| protected boolean assumeJava10Plus() Shall we assume JDK 10+ command line switches?
| |
| assumeJava11 | back to summary |
|---|---|
| protected boolean assumeJava11()
Deprecated since Ant 1.10.7, use assumeJava1_1Plus, if necessary combined with !assumeJava1_2Plus Shall we assume JDK 1.1 command line switches?
| |
| assumeJava12 | back to summary |
|---|---|
| protected boolean assumeJava12()
Deprecated since Ant 1.10.7, use assumeJava1_2Plus, if necessary combined with !assumeJava1_3Plus Shall we assume JDK 1.2 command line switches?
| |
| assumeJava13 | back to summary |
|---|---|
| protected boolean assumeJava13()
Deprecated since Ant 1.10.7, use assumeJava1_3Plus, if necessary combined with !assumeJava1_4Plus Shall we assume JDK 1.3 command line switches?
| |
| assumeJava14 | back to summary |
|---|---|
| protected boolean assumeJava14()
Deprecated since Ant 1.10.7, use assumeJava1_4Plus, if necessary combined with !assumeJava1_5Plus Shall we assume JDK 1.4 command line switches?
| |
| assumeJava15 | back to summary |
|---|---|
| protected boolean assumeJava15()
Deprecated since Ant 1.10.7, use assumeJava1_5Plus, if necessary combined with !assumeJava1_6Plus Shall we assume JDK 1.5 command line switches?
| |
| assumeJava16 | back to summary |
|---|---|
| protected boolean assumeJava16()
Deprecated since Ant 1.10.7, use assumeJava1_6Plus, if necessary combined with !assumeJava1_7Plus Shall we assume JDK 1.6 command line switches?
| |
| assumeJava17 | back to summary |
|---|---|
| protected boolean assumeJava17()
Deprecated since Ant 1.10.7, use assumeJava1_7Plus, if necessary combined with !assumeJava1_8Plus Shall we assume JDK 1.7 command line switches?
| |
| assumeJava18 | back to summary |
|---|---|
| protected boolean assumeJava18()
Deprecated since Ant 1.10.7, use assumeJava1_8Plus, if necessary combined with !assumeJava9Plus Shall we assume JDK 1.8 command line switches?
| |
| assumeJava19 | back to summary |
|---|---|
| protected boolean assumeJava19()
Deprecated use #assumeJava9 instead Shall we assume JDK 9 command line switches?
| |
| assumeJava1_1Plus | back to summary |
|---|---|
| protected boolean assumeJava1_1Plus() Shall we assume JDK 1.1+ command line switches?
| |
| assumeJava1_2Plus | back to summary |
|---|---|
| protected boolean assumeJava1_2Plus() Shall we assume JDK 1.2+ command line switches?
| |
| assumeJava1_3Plus | back to summary |
|---|---|
| protected boolean assumeJava1_3Plus() Shall we assume JDK 1.3+ command line switches?
| |
| assumeJava1_4Plus | back to summary |
|---|---|
| protected boolean assumeJava1_4Plus() Shall we assume JDK 1.4+ command line switches?
| |
| assumeJava1_5Plus | back to summary |
|---|---|
| protected boolean assumeJava1_5Plus() Shall we assume JDK 1.5+ command line switches?
| |
| assumeJava1_6Plus | back to summary |
|---|---|
| protected boolean assumeJava1_6Plus() Shall we assume JDK 1.6+ command line switches?
| |
| assumeJava1_7Plus | back to summary |
|---|---|
| protected boolean assumeJava1_7Plus() Shall we assume JDK 1.7+ command line switches?
| |
| assumeJava1_8Plus | back to summary |
|---|---|
| protected boolean assumeJava1_8Plus() Shall we assume JDK 1.8+ command line switches?
| |
| assumeJava9 | back to summary |
|---|---|
| protected boolean assumeJava9()
Deprecated since Ant 1.10.7, use assumeJava9Plus, in the future if necessary combined with !assumeJava10Plus Shall we assume JDK 9 command line switches?
| |
| assumeJava9Plus | back to summary |
|---|---|
| protected boolean assumeJava9Plus() Shall we assume JDK 9+ command line switches?
| |
| assumeJavaXY | back to summary |
|---|---|
| private boolean assumeJavaXY(final String javacXY, final String javaEnvVersionXY) Shall we assume command line switches for the given version of Java?
| |
| executeExternalCompile | back to summary |
|---|---|
| protected int executeExternalCompile(final String[] args, final int firstFileName) Do the compile with the specified arguments.
| |
| executeExternalCompile | back to summary |
|---|---|
| protected int executeExternalCompile(final String[] args, final int firstFileName, final boolean quoteFiles) Do the compile with the specified arguments. The working directory if the executed process will be the project's base directory.
| |
| getBootClassPath | back to summary |
|---|---|
| protected Path getBootClassPath() Combines a user specified bootclasspath with the system bootclasspath taking build.sysclasspath into account.
| |
| getCompileClasspath | back to summary |
|---|---|
| protected Path getCompileClasspath() Builds the compilation classpath.
| |
| getDefaultSource | back to summary |
|---|---|
| private String getDefaultSource() A string that describes the default value for -source of the selected JDK's javac. | |
| getJavac | back to summary |
|---|---|
| public Javac getJavac() Get the Javac task instance associated with this compiler adapter
| |
| getModulepath | back to summary |
|---|---|
| protected Path getModulepath() Builds the modulepath.
| |
| getModulesourcepath | back to summary |
|---|---|
| protected Path getModulesourcepath() Builds the modulesourcepath for multi module compilation.
| |
| getNoDebugArgument | back to summary |
|---|---|
| protected String getNoDebugArgument() The argument the compiler wants to see if the debug attribute has been set to false. A return value of
| |
| getProject | back to summary |
|---|---|
| protected Project getProject() Get the project this compiler adapter was created in.
| |
| getSupportedFileExtensions | back to summary |
|---|---|
| public String[] getSupportedFileExtensions() Implements org. By default, only recognize files with a Java extension, but specialized compilers can recognize multiple kinds of files.
| |
| getUpgrademodulepath | back to summary |
|---|---|
| protected Path getUpgrademodulepath() Builds the upgrademodulepath.
| |
| logAndAddFilesToCompile | back to summary |
|---|---|
| protected void logAndAddFilesToCompile(final Commandline cmd) Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"
| |
| mustSetSourceForTarget | back to summary |
|---|---|
| private boolean mustSetSourceForTarget(String t) Whether the selected -target is known to be incompatible with the default -source value of the selected JDK's javac. Assumes it will never be called unless the selected JDK is at least Java 1.5.
| |
| setImplicitSourceSwitch | back to summary |
|---|---|
| private void setImplicitSourceSwitch(final Commandline cmd, final String target, final String source) | |
| setJavac | back to summary |
|---|---|
| public void setJavac(final Javac attributes) Implements org. Set the Javac instance which contains the configured compilation attributes. | |
| setupJavacCommand | back to summary |
|---|---|
| protected Commandline setupJavacCommand() Set up the command line.
| |
| setupJavacCommand | back to summary |
|---|---|
| protected Commandline setupJavacCommand(final boolean debugLevelCheck) Does the command line argument processing for classic and adds the files to compile as well.
| |
| setupJavacCommandlineSwitches | back to summary |
|---|---|
| protected Commandline setupJavacCommandlineSwitches(final Commandline cmd) Get the command line arguments for the switches.
| |
| setupJavacCommandlineSwitches | back to summary |
|---|---|
| protected Commandline setupJavacCommandlineSwitches(final Commandline cmd, final boolean useDebugLevel) Does the command line argument processing common to classic and modern. Doesn't add the files to compile.
| |
| setupModernJavacCommand | back to summary |
|---|---|
| protected Commandline setupModernJavacCommand() Does the command line argument processing for modern and adds the files to compile as well.
| |
| setupModernJavacCommandlineSwitches | back to summary |
|---|---|
| protected Commandline setupModernJavacCommandlineSwitches(final Commandline cmd) Does the command line argument processing for modern. Doesn't add the files to compile.
| |