Package org.codehaus.plexus.compiler
Class CompilerConfiguration
java.lang.Object
org.codehaus.plexus.compiler.CompilerConfiguration
- Author:
- jdcasey
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRe-use strategy of the compiler (implement for java only). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClasspathEntry(String classpathEntry) voidaddCompilerCustomArgument(String customArgument, String value) voidaddExclude(String exclude) voidaddInclude(String include) voidaddModulepathEntry(String modulepathEntry) voidvoidaddProcessorPathEntry(String entry) -processorpath parameter in jdk 1.6+.voidaddSourceLocation(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+.booleanisDebug()booleanbooleanbooleanbooleanisFork()booleanbooleanbooleanbooleanbooleanbooleanvoidsetAnnotationProcessors(String[] annotationProcessors) voidsetBuildDirectory(File buildDirectory) voidsetClasspathEntries(List<String> classpathEntries) voidsetCompilerReuseStrategy(CompilerConfiguration.CompilerReuseStrategy compilerReuseStrategy) voidsetCompilerVersion(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 binaryvoidsetCustomCompilerArgumentsAsMap(Map<String, String> customCompilerArguments) voidsetDebug(boolean debug) voidsetDebugFileName(String debugFileName) voidsetDebugLevel(String debugLevel) voidsetEnablePreview(boolean enablePreview) voidsetExcludes(Set<String> excludes) voidsetExecutable(String executable) voidsetFailOnWarning(boolean failOnWarnings) voidsetForceJavacCompilerUse(boolean forceJavacCompilerUse) voidsetFork(boolean fork) voidsetGeneratedSourcesDirectory(File generatedSourcesDirectory) voidsetImplicitOption(String implicitOption) voidsetIncludes(Set<String> includes) voidvoidsetMeminitial(String meminitial) voidsetModulepathEntries(List<String> modulepathEntries) voidsetModuleVersion(String moduleVersion) voidsetOptimize(boolean optimize) voidsetOutputFileName(String outputFileName) voidsetOutputLocation(String outputLocation) voidsetParameters(boolean parameters) voidvoidsetProcessorModulePathEntries(List<String> processorModulePathEntries) voidsetProcessorPathEntries(List<String> processorPathEntries) -processorpath parameter in jdk 1.6+.voidsetReleaseVersion(String releaseVersion) voidsetShowDeprecation(boolean showDeprecation) voidsetShowLint(boolean showLint) voidsetShowWarnings(boolean showWarnings) voidsetSourceEncoding(String sourceEncoding) voidsetSourceFiles(Set<File> sourceFiles) voidsetSourceLocations(List<String> sourceLocations) voidsetSourceVersion(String sourceVersion) voidsetTargetVersion(String targetVersion) voidsetVerbose(boolean verbose) voidsetWarnings(String warnings) voidsetWorkingDirectory(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
-