Class AjBuildConfig
java.lang.Object
org.aspectj.ajdt.internal.core.builder.AjBuildConfig
- All Implemented Interfaces:
CompilerConfigurationChangeFlags
All configuration information needed to run the AspectJ compiler. Compiler options (as opposed to path information) are held in
an AjCompilerOptions instance
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static String
static String
static String
static FileSystem.Classpath[]
Fields inherited from interface org.aspectj.ajdt.internal.core.builder.CompilerConfigurationChangeFlags
ASPECTPATH_CHANGED, CLASSPATH_CHANGED, EVERYTHING, INJARS_CHANGED, INPATH_CHANGED, JAVAOPTIONS_CHANGED, NO_CHANGES, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED, OUTPUTDESTINATIONS_CHANGED, PROCESSOR_CHANGED, PROJECTSOURCEFILES_CHANGED, PROJECTSOURCERESOURCES_CHANGED, XMLCONFIG_CHANGED
-
Constructor Summary
ConstructorDescriptionAjBuildConfig(BuildArgParser buildArgParser)
Intialises the javaOptions Map to hold the default JDT Compiler settings. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToAspectpath(File file)
void
addToAspectpath(Set<File> newAspectpathEntries)
void
addToInjars(File file)
void
addToInpath(File newInpathEntry)
void
addToInpath(Set<File> newInpathEntries)
void
boolean
returned files includes all .class files found in a directory on the inpath, but does not include .class files contained within jars.int
Return the bit flags indicating what has changed since the last time this config was used.This does not include -bootclasspath but includes -extdirs and -classpathgetFiles()
returned files includes files explicitly listed on command-line files listed by reference in argument list files files contained in sourceRootDir if that existsboolean
boolean
boolean
void
installGlobals(AjBuildConfig global)
Install global values into local config unless values conflict: Collections are unioned values takes local value unless default and global set this only sets one of outputDir and outputJar as neededboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isTiming()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
removeAspectPathEntry(int i)
removeClasspathEntry(int i)
removeInjarsEntry(int i)
removeInpathEntry(int i)
void
setAddSerialVerUID(boolean b)
void
setAspectpath(List<File> aspectpath)
void
setBehaveInJava5Way(boolean b)
void
setBootclasspath(List<String> bootclasspath)
void
setChanged(int changes)
Indicates what has changed in this configuration compared to the last time it was used, allowing the state management logic to make intelligent optimizations and skip unnecessary work.void
setCheckedClasspaths(FileSystem.Classpath[] checkedClasspaths)
void
setCheckRuntimeVersion(boolean on)
void
setClasspath(List<String> classpath)
void
setClasspathElementsWithModifiedContents(List<String> cpElementsWithModifiedContents)
void
void
setConfigFile(File configFile)
void
setEmacsSymMode(boolean emacsSymMode)
void
void
setGenerateCrossRefsMode(boolean on)
void
setGenerateJavadocsInModelMode(boolean generateJavadocsInModelMode)
void
setGenerateModelMode(boolean structureModelMode)
void
setIncrementalFile(File incrementalFile)
void
setIncrementalMode(boolean incrementalMode)
void
void
void
setLintMode(String lintMode)
void
setLintSpecFile(File lintSpecFile)
void
setMakeReflectable(boolean b)
void
setModifiedFiles(List<File> projectSourceFilesChanged)
void
setModuleDesc(IModule moduleDesc)
void
setModulepath(List<String> modulepath)
void
setModulepathClasspathEntries(ArrayList<FileSystem.Classpath> modulepathClasspathEntries)
void
setModulesourcepath(List<String> modulesourcepath)
void
setModulesourcepathClasspathEntries(ArrayList<FileSystem.Classpath> modulesourcepathClasspathEntries)
void
setNoAtAspectJAnnotationProcessing(boolean noProcess)
void
setOutputDir(File outputDir)
void
setOutputJar(File outputJar)
void
setOutxmlName(String name)
void
setProceedOnError(boolean b)
void
setProcessor(String processor)
void
setProcessorPath(String processorPath)
void
setProjectEncoding(String projectEncoding)
void
setShowWeavingInformation(boolean b)
void
setSourcePathResources(Map<String,File> map)
void
setSourceRoots(List<File> sourceRootDir)
void
setTargetAspectjRuntimeLevel(String level)
void
setTerminateAfterCompilation(boolean b)
void
setTiming(boolean b)
void
setXconfigurationInfo(String info)
void
setXdevPinpointMode(boolean enabled)
void
setXHasMemberSupport(boolean enabled)
void
setXJoinpoints(String jps)
void
setXlazyTjp(boolean b)
void
setXmlConfigured(boolean b)
void
setXmlFiles(List<File> xmlfiles)
void
setXnoInline(boolean xnoInline)
void
setXnotReweavable(boolean b)
void
setXserializableAspects(boolean xserializableAspects)
boolean
used to indicate whether to proceed after parsing configtoString()
-
Field Details
-
NO_CHECKED_CLASSPATHS
-
AJLINT_IGNORE
- See Also:
- Constant Field Values
-
AJLINT_WARN
- See Also:
- Constant Field Values
-
AJLINT_ERROR
- See Also:
- Constant Field Values
-
AJLINT_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AjBuildConfig
Intialises the javaOptions Map to hold the default JDT Compiler settings. Added by AMC 01.20.2003 in reponse to bug #29768 and enh. 29769. The settings here are duplicated from those set in org.eclipse.jdt.internal.compiler.batch.Main, but I've elected to copy them rather than refactor the JDT class since this keeps integration with future JDT releases easier (?).
-
-
Method Details
-
toString
-
getBuildArgParser
-
getFiles
returned files includes- files explicitly listed on command-line
- files listed by reference in argument list files
- files contained in sourceRootDir if that exists
- Returns:
- all source files that should be compiled.
-
getXmlFiles
-
setProcessor
-
getProcessor
- Returns:
- the list of processor classes to execute
-
setProcessorPath
-
getProcessorPath
- Returns:
- the processor path which can be searched for processors (via META-INF/services)
-
getBinaryFiles
returned files includes all .class files found in a directory on the inpath, but does not include .class files contained within jars. -
getOutputDir
-
getCompilationResultDestinationManager
-
setCompilationResultDestinationManager
-
setFiles
-
setXmlFiles
-
setOutputDir
-
getOptions
-
getClasspath
This does not include -bootclasspath but includes -extdirs and -classpath -
setClasspath
-
getModulepath
-
getModulesourcepath
-
setModulepath
-
setModulesourcepath
-
setCheckedClasspaths
-
getCheckedClasspaths
-
getBootclasspath
-
setBootclasspath
-
getOutputJar
-
getOutxmlName
-
getInpath
-
getInJars
-
getSourcePathResources
-
setOutputJar
-
setOutxmlName
-
setInJars
-
processInPath
public void processInPath() -
setInPath
-
getSourceRoots
-
setSourceRoots
-
getConfigFile
-
setConfigFile
-
setIncrementalMode
public void setIncrementalMode(boolean incrementalMode) -
isIncrementalMode
public boolean isIncrementalMode() -
setIncrementalFile
-
isIncrementalFileMode
public boolean isIncrementalFileMode() -
getFullClasspath
- Returns:
- List (String) classpath of bootclasspath, injars, inpath, aspectpath entries, specified classpath (extdirs, and classpath), and output dir or jar
-
getLintSpecFile
-
setLintSpecFile
-
getAspectpath
-
setAspectpath
-
addToAspectpath
-
addToInjars
-
hasSources
public boolean hasSources()- Returns:
- true if any config file, sourceroots, sourcefiles, injars or inpath
-
installGlobals
Install global values into local config unless values conflict:- Collections are unioned
- values takes local value unless default and global set
- this only sets one of outputDir and outputJar as needed
This also configures super if javaOptions change.
- Parameters:
global
- the AjBuildConfig to read globals from
-
setSourcePathResources
-
shouldProceed
public boolean shouldProceed()used to indicate whether to proceed after parsing config -
doNotProceed
public void doNotProceed() -
getLintMode
-
getLintOptionsMap
-
setLintMode
-
isTerminateAfterCompilation
public boolean isTerminateAfterCompilation() -
setTerminateAfterCompilation
public void setTerminateAfterCompilation(boolean b) -
isXserializableAspects
public boolean isXserializableAspects() -
setXserializableAspects
public void setXserializableAspects(boolean xserializableAspects) -
setXJoinpoints
-
getXJoinpoints
-
isXnoInline
public boolean isXnoInline() -
setXnoInline
public void setXnoInline(boolean xnoInline) -
isXlazyTjp
public boolean isXlazyTjp() -
setXlazyTjp
public void setXlazyTjp(boolean b) -
setXnotReweavable
public void setXnotReweavable(boolean b) -
setXconfigurationInfo
-
getXconfigurationInfo
-
setXHasMemberSupport
public void setXHasMemberSupport(boolean enabled) -
isXHasMemberEnabled
public boolean isXHasMemberEnabled() -
setXdevPinpointMode
public void setXdevPinpointMode(boolean enabled) -
isXdevPinpoint
public boolean isXdevPinpoint() -
setAddSerialVerUID
public void setAddSerialVerUID(boolean b) -
isAddSerialVerUID
public boolean isAddSerialVerUID() -
setXmlConfigured
public void setXmlConfigured(boolean b) -
setMakeReflectable
public void setMakeReflectable(boolean b) -
isXmlConfigured
public boolean isXmlConfigured() -
isMakeReflectable
public boolean isMakeReflectable() -
isXNotReweavable
public boolean isXNotReweavable() -
isGenerateJavadocsInModelMode
public boolean isGenerateJavadocsInModelMode() -
setGenerateJavadocsInModelMode
public void setGenerateJavadocsInModelMode(boolean generateJavadocsInModelMode) -
isGenerateCrossRefsMode
public boolean isGenerateCrossRefsMode() -
setGenerateCrossRefsMode
public void setGenerateCrossRefsMode(boolean on) -
isCheckRuntimeVersion
public boolean isCheckRuntimeVersion() -
setCheckRuntimeVersion
public void setCheckRuntimeVersion(boolean on) -
isEmacsSymMode
public boolean isEmacsSymMode() -
setEmacsSymMode
public void setEmacsSymMode(boolean emacsSymMode) -
isGenerateModelMode
public boolean isGenerateModelMode() -
setGenerateModelMode
public void setGenerateModelMode(boolean structureModelMode) -
isNoAtAspectJAnnotationProcessing
public boolean isNoAtAspectJAnnotationProcessing() -
setNoAtAspectJAnnotationProcessing
public void setNoAtAspectJAnnotationProcessing(boolean noProcess) -
setShowWeavingInformation
public void setShowWeavingInformation(boolean b) -
getShowWeavingInformation
public boolean getShowWeavingInformation() -
setProceedOnError
public void setProceedOnError(boolean b) -
getProceedOnError
public boolean getProceedOnError() -
setBehaveInJava5Way
public void setBehaveInJava5Way(boolean b) -
getBehaveInJava5Way
public boolean getBehaveInJava5Way() -
setTiming
public void setTiming(boolean b) -
isTiming
public boolean isTiming() -
setTargetAspectjRuntimeLevel
-
getTargetAspectjRuntimeLevel
-
setChanged
public void setChanged(int changes)Indicates what has changed in this configuration compared to the last time it was used, allowing the state management logic to make intelligent optimizations and skip unnecessary work.- Parameters:
changes
- set of bitflags, seeCompilerConfigurationChangeFlags
for flags
-
getChanged
public int getChanged()Return the bit flags indicating what has changed since the last time this config was used.- Returns:
- the bitflags according too
CompilerConfigurationChangeFlags
-
setModifiedFiles
-
getModifiedFiles
-
setClasspathElementsWithModifiedContents
-
getClasspathElementsWithModifiedContents
-
setProjectEncoding
-
getProjectEncoding
-
setModuleDesc
-
getModuleDesc
-
addToInpath
-
addToInpath
-
addToAspectpath
-
setModulepathClasspathEntries
public void setModulepathClasspathEntries(ArrayList<FileSystem.Classpath> modulepathClasspathEntries) -
setModulesourcepathClasspathEntries
public void setModulesourcepathClasspathEntries(ArrayList<FileSystem.Classpath> modulesourcepathClasspathEntries) -
removeAspectPathEntry
-
removeClasspathEntry
-
removeInpathEntry
-
removeInjarsEntry
-