Class CompilerConfiguration


  • public class CompilerConfiguration
    extends Object
    Author:
    jdcasey
    • Constructor Detail

      • CompilerConfiguration

        public CompilerConfiguration()
    • Method Detail

      • 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()
      • 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 -
      • 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
      • isForceJavacCompilerUse

        public boolean isForceJavacCompilerUse()
      • setForceJavacCompilerUse

        public void setForceJavacCompilerUse​(boolean forceJavacCompilerUse)