Package org.codehaus.plexus.compiler
Class CompilerConfiguration
- java.lang.Object
-
- org.codehaus.plexus.compiler.CompilerConfiguration
-
public class CompilerConfiguration extends Object
- Author:
- jdcasey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompilerConfiguration.CompilerReuseStrategy
Re-use strategy of the compiler (implement for java only).
-
Constructor Summary
Constructors Constructor Description CompilerConfiguration()
-
Method Summary
-
-
-
Method Detail
-
setOutputLocation
public void setOutputLocation(String outputLocation)
-
getOutputLocation
public String getOutputLocation()
-
addClasspathEntry
public void addClasspathEntry(String classpathEntry)
-
addModulepathEntry
public void addModulepathEntry(String modulepathEntry)
-
addSourceLocation
public void addSourceLocation(String sourceLocation)
-
addInclude
public void addInclude(String include)
-
addExclude
public void addExclude(String exclude)
-
setDebug
public void setDebug(boolean debug)
-
isDebug
public boolean isDebug()
-
setDebugLevel
public void setDebugLevel(String debugLevel)
-
getDebugLevel
public String getDebugLevel()
-
setShowWarnings
public void setShowWarnings(boolean showWarnings)
-
isShowWarnings
public boolean isShowWarnings()
-
isShowDeprecation
public boolean isShowDeprecation()
-
setShowDeprecation
public void setShowDeprecation(boolean showDeprecation)
-
isFailOnWarning
public boolean isFailOnWarning()
-
setFailOnWarning
public void setFailOnWarning(boolean failOnWarnings)
-
getSourceVersion
public String getSourceVersion()
-
setSourceVersion
public void setSourceVersion(String sourceVersion)
-
getTargetVersion
public String getTargetVersion()
-
setTargetVersion
public void setTargetVersion(String targetVersion)
-
getReleaseVersion
public String getReleaseVersion()
-
setReleaseVersion
public void setReleaseVersion(String releaseVersion)
-
getSourceEncoding
public String getSourceEncoding()
-
setSourceEncoding
public void setSourceEncoding(String sourceEncoding)
-
getModuleVersion
public String getModuleVersion()
-
setModuleVersion
public void setModuleVersion(String moduleVersion)
-
addCompilerCustomArgument
public void addCompilerCustomArgument(String customArgument, String value)
-
getCustomCompilerArguments
@Deprecated public LinkedHashMap<String,String> getCustomCompilerArguments()
Deprecated.will be removed in 2.X use #getCustomCompilerArgumentsAsMap- Returns:
-
setCustomCompilerArguments
@Deprecated public void setCustomCompilerArguments(LinkedHashMap<String,String> customCompilerArguments)
Deprecated.will be removed in 2.X use #setCustomCompilerArgumentsAsMap- Parameters:
customCompilerArguments
-
-
getCustomCompilerArgumentsAsMap
public Map<String,String> getCustomCompilerArgumentsAsMap()
Get all unique argument keys and their value. In case of duplicate keys, last one added wins.- Returns:
- See Also:
getCustomCompilerArgumentsEntries()
-
setCustomCompilerArgumentsAsMap
public void setCustomCompilerArgumentsAsMap(Map<String,String> customCompilerArguments)
-
getCustomCompilerArgumentsEntries
public Collection<Map.Entry<String,String>> 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
public String getMeminitial()
-
setMeminitial
public void setMeminitial(String meminitial)
-
getMaxmem
public String getMaxmem()
-
setMaxmem
public void setMaxmem(String maxmem)
-
getExecutable
public String getExecutable()
-
setExecutable
public void setExecutable(String executable)
-
getWorkingDirectory
public File getWorkingDirectory()
-
setWorkingDirectory
public void setWorkingDirectory(File workingDirectory)
-
getBuildDirectory
public File getBuildDirectory()
-
setBuildDirectory
public void setBuildDirectory(File buildDirectory)
-
getOutputFileName
public String getOutputFileName()
-
setOutputFileName
public void setOutputFileName(String outputFileName)
-
isOptimize
public boolean isOptimize()
-
setOptimize
public void setOptimize(boolean optimize)
-
getCompilerVersion
public String getCompilerVersion()
-
setCompilerVersion
public void setCompilerVersion(String compilerVersion)
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
isParameters
public boolean isParameters()
-
setParameters
public void setParameters(boolean parameters)
-
setProc
public void setProc(String proc)
-
setGeneratedSourcesDirectory
public void setGeneratedSourcesDirectory(File generatedSourcesDirectory)
-
getGeneratedSourcesDirectory
public File getGeneratedSourcesDirectory()
-
getProc
public String getProc()
-
setAnnotationProcessors
public void setAnnotationProcessors(String[] annotationProcessors)
-
getAnnotationProcessors
public String[] getAnnotationProcessors()
-
addProcessorPathEntry
public void addProcessorPathEntry(String entry)
-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
public List<String> 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
public void setProcessorPathEntries(List<String> processorPathEntries)
-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
-
getCompilerReuseStrategy
public CompilerConfiguration.CompilerReuseStrategy getCompilerReuseStrategy()
-
setCompilerReuseStrategy
public void setCompilerReuseStrategy(CompilerConfiguration.CompilerReuseStrategy compilerReuseStrategy)
-
isForceJavacCompilerUse
public boolean isForceJavacCompilerUse()
-
setForceJavacCompilerUse
public void setForceJavacCompilerUse(boolean forceJavacCompilerUse)
-
-