Package org.codehaus.plexus.compiler
Class CompilerConfiguration
java.lang.Object
org.codehaus.plexus.compiler.CompilerConfiguration
- Author:
- jdcasey
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Re-use strategy of the compiler (implement for java only). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClasspathEntry
(String classpathEntry) void
addCompilerCustomArgument
(String customArgument, String value) void
addExclude
(String exclude) void
addInclude
(String include) void
addModulepathEntry
(String modulepathEntry) void
void
addProcessorPathEntry
(String entry) -processorpath parameter in jdk 1.6+.void
addSourceLocation
(String sourceLocation) describe()
String[]
Deprecated.Don't use any longer because this is just the configured version which does not necessarily match the version of the actually executed compiler binaryGet all unique argument keys and their value.In case argument keys are not unique, this will return all entriesgetProc()
-processorpath parameter in jdk 1.6+.boolean
isDebug()
boolean
boolean
boolean
boolean
isFork()
boolean
boolean
boolean
boolean
boolean
boolean
void
setAnnotationProcessors
(String[] annotationProcessors) void
setBuildDirectory
(File buildDirectory) void
setClasspathEntries
(List<String> classpathEntries) void
setCompilerReuseStrategy
(CompilerConfiguration.CompilerReuseStrategy compilerReuseStrategy) void
setCompilerVersion
(String compilerVersion) Deprecated.Don't use any longer because this is just the configured version which does not necessarily match the version of the actually executed compiler binaryvoid
setCustomCompilerArgumentsAsMap
(Map<String, String> customCompilerArguments) void
setDebug
(boolean debug) void
setDebugFileName
(String debugFileName) void
setDebugLevel
(String debugLevel) void
setEnablePreview
(boolean enablePreview) void
setExcludes
(Set<String> excludes) void
setExecutable
(String executable) void
setFailOnWarning
(boolean failOnWarnings) void
setForceJavacCompilerUse
(boolean forceJavacCompilerUse) void
setFork
(boolean fork) void
setGeneratedSourcesDirectory
(File generatedSourcesDirectory) void
setImplicitOption
(String implicitOption) void
setIncludes
(Set<String> includes) void
void
setMeminitial
(String meminitial) void
setModulepathEntries
(List<String> modulepathEntries) void
setModuleVersion
(String moduleVersion) void
setOptimize
(boolean optimize) void
setOutputFileName
(String outputFileName) void
setOutputLocation
(String outputLocation) void
setParameters
(boolean parameters) void
void
setProcessorModulePathEntries
(List<String> processorModulePathEntries) void
setProcessorPathEntries
(List<String> processorPathEntries) -processorpath parameter in jdk 1.6+.void
setReleaseVersion
(String releaseVersion) void
setShowDeprecation
(boolean showDeprecation) void
setShowLint
(boolean showLint) void
setShowWarnings
(boolean showWarnings) void
setSourceEncoding
(String sourceEncoding) void
setSourceFiles
(Set<File> sourceFiles) void
setSourceLocations
(List<String> sourceLocations) void
setSourceVersion
(String sourceVersion) void
setTargetVersion
(String targetVersion) void
setVerbose
(boolean verbose) void
setWarnings
(String warnings) void
setWorkingDirectory
(File workingDirectory)
-
Constructor Details
-
CompilerConfiguration
public CompilerConfiguration()
-
-
Method Details
-
setOutputLocation
-
getOutputLocation
-
addClasspathEntry
-
setClasspathEntries
-
getClasspathEntries
-
addModulepathEntry
-
setModulepathEntries
-
getModulepathEntries
-
setSourceFiles
-
getSourceFiles
-
addSourceLocation
-
setSourceLocations
-
getSourceLocations
-
addInclude
-
setIncludes
-
getIncludes
-
addExclude
-
setExcludes
-
getExcludes
-
setDebug
public void setDebug(boolean debug) -
isDebug
public boolean isDebug() -
setDebugLevel
-
getDebugLevel
-
setWarnings
-
isShowWarnings
public boolean isShowWarnings() -
setShowWarnings
public void setShowWarnings(boolean showWarnings) -
isShowDeprecation
public boolean isShowDeprecation() -
getWarnings
-
setShowLint
public void setShowLint(boolean showLint) -
isShowLint
public boolean isShowLint() -
setShowDeprecation
public void setShowDeprecation(boolean showDeprecation) -
isFailOnWarning
public boolean isFailOnWarning() -
setFailOnWarning
public void setFailOnWarning(boolean failOnWarnings) -
getSourceVersion
-
setSourceVersion
-
getTargetVersion
-
setTargetVersion
-
getReleaseVersion
-
setReleaseVersion
-
getSourceEncoding
-
setSourceEncoding
-
getModuleVersion
-
setModuleVersion
-
addCompilerCustomArgument
-
getCustomCompilerArgumentsAsMap
Get all unique argument keys and their value. In case of duplicate keys, last one added wins.- Returns:
- See Also:
-
setCustomCompilerArgumentsAsMap
-
getCustomCompilerArgumentsEntries
In case argument keys are not unique, this will return all entries- Returns:
-
isFork
public boolean isFork() -
setFork
public void setFork(boolean fork) -
getMeminitial
-
setMeminitial
-
getMaxmem
-
setMaxmem
-
getExecutable
-
setExecutable
-
getWorkingDirectory
-
setWorkingDirectory
-
getBuildDirectory
-
setBuildDirectory
-
getOutputFileName
-
setOutputFileName
-
isOptimize
public boolean isOptimize() -
setOptimize
public void setOptimize(boolean optimize) -
getCompilerVersion
Deprecated.Don't use any longer because this is just the configured version which does not necessarily match the version of the actually executed compiler binary -
setCompilerVersion
Deprecated.Don't use any longer because this is just the configured version which does not necessarily match the version of the actually executed compiler binary -
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) -
isParameters
public boolean isParameters() -
setParameters
public void setParameters(boolean parameters) -
isEnablePreview
public boolean isEnablePreview() -
setEnablePreview
public void setEnablePreview(boolean enablePreview) -
setProc
-
setGeneratedSourcesDirectory
-
getGeneratedSourcesDirectory
-
getProc
-
setAnnotationProcessors
-
getAnnotationProcessors
-
addProcessorPathEntry
-processorpath parameter in jdk 1.6+. If specified, annotation processors are only searched in the processor path. Otherwise they are searched in the classpath.- Parameters:
entry
- processor path entry to add
-
getProcessorPathEntries
-processorpath parameter in jdk 1.6+. If specified, annotation processors are only searched in the processor path. Otherwise they are searched in the classpath.- Returns:
- the processorPathEntries
-
setProcessorPathEntries
-processorpath parameter in jdk 1.6+. If specified, annotation processors are only searched in the processor path. Otherwise they are searched in the classpath.- Parameters:
processorPathEntries
- the processorPathEntries to set
-
addProcessorModulePathEntry
-
getProcessorModulePathEntries
-
setProcessorModulePathEntries
-
getCompilerReuseStrategy
-
setCompilerReuseStrategy
public void setCompilerReuseStrategy(CompilerConfiguration.CompilerReuseStrategy compilerReuseStrategy) -
getDebugFileName
-
setDebugFileName
-
isForceJavacCompilerUse
public boolean isForceJavacCompilerUse() -
setForceJavacCompilerUse
public void setForceJavacCompilerUse(boolean forceJavacCompilerUse) -
getImplicitOption
-
setImplicitOption
-
describe
-