public class BuildArgParser extends Main
Main.Logger, Main.ResourceBundleFactoryannotationPaths, annotationsFromClasspath, batchCompiler, bundle, bundleName, checkedClasspaths, classNames, compilerLocale, compilerOptions, compilerStats, currentRepetition, DEFAULT_SIZE_CLASSPATH, destinationPath, destinationPaths, encodings, exportedClassFilesCounter, extraProblems, filenames, globalErrorsCount, globalProblemsCount, globalTasksCount, globalWarningsCount, ignoreOptionalProblemsFromFolders, lineCount0, log, logger, maxProblems, maxRepetition, NONE, options, out, pendingErrors, proceed, proceedOnError, produceRefInfo, progress, showProgress, startTime, systemExitWhenFinished, timing, TIMING_DETAILED, TIMING_DISABLED, TIMING_ENABLED, verboseAbort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, CoreSeverityMASK, Error, Fatal, Ignore, Info, InternalError, Optional, SecondaryError, WarningEXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
BuildArgParser(IMessageHandler handler)
Set up to capture messages using getOtherMessages(boolean)
|
BuildArgParser(java.io.PrintWriter writer,
IMessageHandler handler)
Overrides super's bundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtraProblems(CategorizedProblem problem) |
AjBuildConfig |
genBuildConfig(java.lang.String[] args)
Generate build configuration for the input args, passing to handler any error messages.
|
java.util.List<java.lang.String> |
getBootclasspath(org.aspectj.ajdt.ajc.BuildArgParser.AjcConfigParser parser) |
java.util.List |
getClasspath(org.aspectj.ajdt.ajc.BuildArgParser.AjcConfigParser parser)
If the classpath is not set, we use the environment's java.class.path, but remove the aspectjtools.jar entry from that list
in order to prevent wierd bootstrap issues (refer to bug#39959).
|
java.lang.String |
getOtherMessages(boolean flush)
Get messages not dumped to handler or any PrintWriter.
|
static java.lang.String |
getUsage() |
static java.lang.String |
getXOptionUsage() |
void |
initializeAnnotationProcessorManager() |
AjBuildConfig |
populateBuildConfig(AjBuildConfig buildConfig,
java.lang.String[] args,
boolean setClasspath,
java.io.File configFile)
Generate build configuration for the input arguments, passing to handler any error messages.
|
void |
printUsage() |
void |
printVersion() |
_bind, addNewEntry, bind, bind, bind, bind, compile, compile, compile, compile, configure, disableAll, enableAll, extractDestinationPathFromSourceFile, getBatchRequestor, getCompilationUnits, getHandlingPolicy, getJavaHome, getLibrariesFiles, getLibraryAccess, getProblemFactory, handleBootclasspath, handleClasspath, handleEndorseddirs, handleErrorToken, handleExtdirs, handleWarningToken, initialize, initialize, initialize, loggingExtraProblems, main, outputClassFiles, performCompilation, processPathEntries, relocalize, setDestinationPath, setLocale, setPaths, tokenize, validateOptionspublic BuildArgParser(java.io.PrintWriter writer,
IMessageHandler handler)
public BuildArgParser(IMessageHandler handler)
public static java.lang.String getUsage()
public static java.lang.String getXOptionUsage()
public AjBuildConfig genBuildConfig(java.lang.String[] args)
args - the String[] arguments for the build configurationpublic AjBuildConfig populateBuildConfig(AjBuildConfig buildConfig, java.lang.String[] args, boolean setClasspath, java.io.File configFile)
args - the String[] arguments for the build configurationsetClasspath - determines if the classpath should be parsed and set on the build configurationconfigFile - can be nullpublic void printVersion()
printVersion in class Mainpublic void addExtraProblems(CategorizedProblem problem)
addExtraProblems in class Mainpublic void initializeAnnotationProcessorManager()
initializeAnnotationProcessorManager in class Mainpublic void printUsage()
printUsage in class Mainpublic java.lang.String getOtherMessages(boolean flush)
flush - if true, empty errorsBuildArgParser()public java.util.List<java.lang.String> getBootclasspath(org.aspectj.ajdt.ajc.BuildArgParser.AjcConfigParser parser)
public java.util.List getClasspath(org.aspectj.ajdt.ajc.BuildArgParser.AjcConfigParser parser)