Class CompilerConfiguration

java.lang.Object
org.codehaus.plexus.compiler.CompilerConfiguration

public class CompilerConfiguration extends Object
Author:
jdcasey
  • Constructor Details

    • CompilerConfiguration

      public CompilerConfiguration()
  • Method Details

    • setOutputLocation

      public void setOutputLocation(String outputLocation)
    • getOutputLocation

      public String getOutputLocation()
    • addClasspathEntry

      public void addClasspathEntry(String classpathEntry)
    • setClasspathEntries

      public void setClasspathEntries(List<String> classpathEntries)
    • getClasspathEntries

      public List<String> getClasspathEntries()
    • addModulepathEntry

      public void addModulepathEntry(String modulepathEntry)
    • setModulepathEntries

      public void setModulepathEntries(List<String> modulepathEntries)
    • getModulepathEntries

      public List<String> getModulepathEntries()
    • setSourceFiles

      public void setSourceFiles(Set<File> sourceFiles)
    • getSourceFiles

      public Set<File> getSourceFiles()
    • addSourceLocation

      public void addSourceLocation(String sourceLocation)
    • setSourceLocations

      public void setSourceLocations(List<String> sourceLocations)
    • getSourceLocations

      public List<String> getSourceLocations()
    • addInclude

      public void addInclude(String include)
    • setIncludes

      public void setIncludes(Set<String> includes)
    • getIncludes

      public Set<String> getIncludes()
    • addExclude

      public void addExclude(String exclude)
    • setExcludes

      public void setExcludes(Set<String> excludes)
    • getExcludes

      public Set<String> getExcludes()
    • setDebug

      public void setDebug(boolean debug)
    • isDebug

      public boolean isDebug()
    • setDebugLevel

      public void setDebugLevel(String debugLevel)
    • getDebugLevel

      public String getDebugLevel()
    • setWarnings

      public void setWarnings(String warnings)
    • isShowWarnings

      public boolean isShowWarnings()
    • setShowWarnings

      public void setShowWarnings(boolean showWarnings)
    • isShowDeprecation

      public boolean isShowDeprecation()
    • getWarnings

      public String 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

      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)
    • 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:
    • 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

      @Deprecated public String 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 public 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 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

      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
    • addProcessorModulePathEntry

      public void addProcessorModulePathEntry(String entry)
    • getProcessorModulePathEntries

      public List<String> getProcessorModulePathEntries()
    • setProcessorModulePathEntries

      public void setProcessorModulePathEntries(List<String> processorModulePathEntries)
    • getCompilerReuseStrategy

      public CompilerConfiguration.CompilerReuseStrategy getCompilerReuseStrategy()
    • setCompilerReuseStrategy

      public void setCompilerReuseStrategy(CompilerConfiguration.CompilerReuseStrategy compilerReuseStrategy)
    • getDebugFileName

      public String getDebugFileName()
    • setDebugFileName

      public void setDebugFileName(String debugFileName)
    • isForceJavacCompilerUse

      public boolean isForceJavacCompilerUse()
    • setForceJavacCompilerUse

      public void setForceJavacCompilerUse(boolean forceJavacCompilerUse)
    • getImplicitOption

      public String getImplicitOption()
    • setImplicitOption

      public void setImplicitOption(String implicitOption)
    • describe

      public String describe()