Package rife.bld.operations
Class JavacOptions
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,List<String>
,RandomAccess
Options for the standard javac tool.
- Since:
- 1.5.18
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddModules
(String... modules) Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATH.addModules
(List<String> modules) Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATH.annotationOption
(String key, String value) Option to pass to annotation processorsboolean
Indicates whether the Java SE release was set.Generate debugging infoOutput source locations where deprecated APIs are usedEnable preview language features.Specify character encoding used by source filesendorsedDirs
(File... dirs) Override location of endorsed standards pathendorsedDirs
(String... dirs) Override location of endorsed standards pathendorsedDirs
(Path... dirs) Override location of endorsed standards pathendorsedDirs
(List<File> dirs) Override location of endorsed standards pathendorsedDirsPaths
(List<Path> dirs) Override location of endorsed standards pathendorsedDirsStrings
(List<String> dirs) Override location of endorsed standards pathOverride location of installed extensionsOverride location of installed extensionsOverride location of installed extensionsOverride location of installed extensionsextDirsPaths
(List<Path> dirs) Override location of installed extensionsextDirsStrings
(List<String> dirs) Override location of installed extensionsimplicit
(JavacOptions.Implicit option) Specify whether or not to generate class files for implicitly referenced fileslimitModules
(String... modules) Limit the universe of observable moduleslimitModules
(List<String> modules) Limit the universe of observable modulesCompile only the specified module(s), check timestampsCompile only the specified module(s), check timestampsmodulePath
(File... paths) Specify where to find application modulesmodulePath
(String... paths) Specify where to find application modulesmodulePath
(Path... paths) Specify where to find application modulesmodulePath
(List<File> paths) Specify where to find application modulesmodulePathPaths
(List<Path> paths) Specify where to find application modulesmodulePathStrings
(List<String> paths) Specify where to find application modulesmoduleSourcePath
(File path) Specify where to find input source files for multiple modulesmoduleSourcePath
(String path) Specify where to find input source files for multiple modulesmoduleSourcePath
(Path path) Specify where to find input source files for multiple modulesmoduleVersion
(String version) Specify version of modules that are being compilednativeHeaders
(File path) Specify where to place generated native header filesnativeHeaders
(String path) Specify where to place generated native header filesnativeHeaders
(Path path) Specify where to place generated native header filesnoWarn()
Generate no warningsGenerate metadata for reflection on method parametersprocess
(JavacOptions.Processing option) Control whether annotation processing and/or compilation is done.processorModulePath
(File path) Specify a module path where to find annotation processorsprocessorModulePath
(String path) Specify a module path where to find annotation processorsprocessorModulePath
(Path path) Specify a module path where to find annotation processorsprocessorPath
(File path) Specify where to find annotation processorsprocessorPath
(String path) Specify where to find annotation processorsprocessorPath
(Path path) Specify where to find annotation processorsprocessors
(String... classnames) Names of the annotation processors to run; bypasses default discovery processprocessors
(List<String> classnames) Names of the annotation processors to run; bypasses default discovery processCheck that API used is available in the specified profilerelease
(int version) Compile for the specified Java SE release.sourceOutput
(File path) Specify the directory used to place the generated source files.sourceOutput
(String path) Specify the directory used to place the generated source files.sourceOutput
(Path path) Specify the directory used to place the generated source files.Override location of system modules.upgradeModulePath
(File path) Override location of upgradeable modulesupgradeModulePath
(String path) Override location of upgradeable modulesupgradeModulePath
(Path path) Override location of upgradeable modulesTerminate compilation if warnings occurMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
JavacOptions
public JavacOptions()
-
-
Method Details
-
annotationOption
Option to pass to annotation processors- Returns:
- this list of options
- Since:
- 1.5.18
-
addModules
Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATH.- Returns:
- this list of options
- Since:
- 1.5.18
-
addModules
Root modules to resolve in addition to the initial modules, or all modules on the module path if a module is ALL-MODULE-PATH.- Returns:
- this list of options
- Since:
- 1.5.18
-
encoding
Specify character encoding used by source files- Returns:
- this list of options
- Since:
- 1.5.18
-
deprecation
Output source locations where deprecated APIs are used- Returns:
- this list of options
- Since:
- 1.5.18
-
enablePreview
Enable preview language features. To be used in conjunction withrelease(int)
.- Returns:
- this list of options
- Since:
- 1.5.18
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 1.5.18
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 1.5.18
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
endorsedDirsPaths
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
endorsedDirs
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
endorsedDirsStrings
Override location of endorsed standards path- Returns:
- this list of options
- Since:
- 2.1
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 1.5.18
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 1.5.18
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
extDirsPaths
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
extDirs
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
extDirsStrings
Override location of installed extensions- Returns:
- this list of options
- Since:
- 2.1
-
containsRelease
public boolean containsRelease()Indicates whether the Java SE release was set.- Returns:
true
if the release was set; orfalse
otherwise- Since:
- 1.5.18
-
release
Compile for the specified Java SE release.- Returns:
- this list of options
- Since:
- 1.5.18
-
debuggingInfo
Generate debugging info- Returns:
- this list of options
- Since:
- 1.5.18
-
nativeHeaders
Specify where to place generated native header files- Returns:
- this list of options
- Since:
- 1.5.18
-
nativeHeaders
Specify where to place generated native header files- Returns:
- this list of options
- Since:
- 2.1
-
nativeHeaders
Specify where to place generated native header files- Returns:
- this list of options
- Since:
- 2.1
-
implicit
Specify whether or not to generate class files for implicitly referenced files- Returns:
- this list of options
- Since:
- 1.5.18
-
limitModules
Limit the universe of observable modules- Returns:
- this list of options
- Since:
- 1.5.18
-
limitModules
Limit the universe of observable modules- Returns:
- this list of options
- Since:
- 1.5.18
-
module
Compile only the specified module(s), check timestamps- Returns:
- this list of options
- Since:
- 1.5.18
-
module
Compile only the specified module(s), check timestamps- Returns:
- this list of options
- Since:
- 1.5.18
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 1.5.18
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 1.6.2
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
modulePathPaths
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
modulePath
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
modulePathStrings
Specify where to find application modules- Returns:
- this list of options
- Since:
- 2.1
-
moduleSourcePath
Specify where to find input source files for multiple modules- Returns:
- this list of options
- Since:
- 1.5.18
-
moduleSourcePath
Specify where to find input source files for multiple modules- Returns:
- this list of options
- Since:
- 2.1
-
moduleSourcePath
Specify where to find input source files for multiple modules- Returns:
- this list of options
- Since:
- 2.1
-
moduleVersion
Specify version of modules that are being compiled- Returns:
- this list of options
- Since:
- 1.5.18
-
noWarn
Generate no warnings- Returns:
- this list of options
- Since:
- 1.5.18
-
parameters
Generate metadata for reflection on method parameters- Returns:
- this list of options
- Since:
- 1.5.18
-
process
Control whether annotation processing and/or compilation is done.- Returns:
- this list of options
- Since:
- 1.5.18
-
processors
Names of the annotation processors to run; bypasses default discovery process- Returns:
- this list of options
- Since:
- 1.5.18
-
processors
Names of the annotation processors to run; bypasses default discovery process- Returns:
- this list of options
- Since:
- 1.5.18
-
processorModulePath
Specify a module path where to find annotation processors- Returns:
- this list of options
- Since:
- 1.5.18
-
processorModulePath
Specify a module path where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
processorModulePath
Specify a module path where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
processorPath
Specify where to find annotation processors- Returns:
- this list of options
- Since:
- 1.5.18
-
processorPath
Specify where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
processorPath
Specify where to find annotation processors- Returns:
- this list of options
- Since:
- 2.1
-
profile
Check that API used is available in the specified profile- Returns:
- this list of options
- Since:
- 1.5.18
-
sourceOutput
Specify the directory used to place the generated source files.- Parameters:
path
- the source output directory path- Returns:
- the list of options
- Since:
- 2.1.1
-
sourceOutput
Specify the directory used to place the generated source files.- Parameters:
path
- the source output directory path- Returns:
- the list of options
- Since:
- 2.1.1
-
sourceOutput
Specify the directory used to place the generated source files.- Parameters:
path
- the source output directory path- Returns:
- the list of options
- Since:
- 2.1.1
-
system
Override location of system modules. Option is <jdk> or none.- Returns:
- this list of options
- Since:
- 1.5.18
-
upgradeModulePath
Override location of upgradeable modules- Returns:
- this list of options
- Since:
- 1.5.18
-
upgradeModulePath
Override location of upgradeable modules- Returns:
- this list of options
- Since:
- 2.1
-
upgradeModulePath
Override location of upgradeable modules- Returns:
- this list of options
- Since:
- 2.1
-
warningError
Terminate compilation if warnings occur- Returns:
- this list of options
- Since:
- 1.5.18
-