class CompilerMain
extends org.eclipse.jdt.internal.compiler.batch.Main
Main are overridden to allow compiling in-process against
a JDK other than the current one. If setJavaHome(File) is not invoked, this class
behaves just the same as its superclass.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
bootclasspathAccessRules |
private boolean |
explicitBootClasspath |
private java.io.File |
javaHome |
private org.codehaus.plexus.logging.Logger |
mavenLogger |
private static java.io.FilenameFilter |
POTENTIAL_ZIP_FILTER |
annotationPaths, annotationsFromClasspath, batchCompiler, bundle, bundleName, checkedClasspaths, classNames, compilerLocale, compilerOptions, compilerStats, complianceLevel, currentRepetition, DEFAULT_SIZE_CLASSPATH, destinationPath, destinationPaths, encodings, exportedClassFilesCounter, extraProblems, filenames, globalErrorsCount, globalInfoCount, globalProblemsCount, globalTasksCount, globalWarningsCount, ignoreOptionalProblemsFromFolders, limitedModules, lineCount0, log, logger, maxProblems, maxRepetition, modNames, module, NONE, options, out, pendingErrors, proceed, proceedOnError, produceRefInfo, progress, releaseVersion, rootModules, showProgress, startTime, systemExitWhenFinished, timing, TIMING_DETAILED, TIMING_DISABLED, TIMING_ENABLED, verboseAbort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, CoreSeverityMASK, Error, Fatal, Ignore, Info, InternalError, Optional, SecondaryError, WarningEXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
CompilerMain(java.io.PrintWriter outWriter,
java.io.PrintWriter errWriter,
boolean systemExitWhenFinished,
org.codehaus.plexus.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getJavaHome() |
protected java.util.ArrayList |
handleBootclasspath(java.util.ArrayList bootclasspaths,
java.lang.String customEncoding) |
protected java.util.ArrayList |
handleEndorseddirs(java.util.ArrayList endorsedDirClasspaths) |
protected java.util.ArrayList |
handleExtdirs(java.util.ArrayList extdirsClasspaths) |
private boolean |
hasClassesDirWithJars() |
protected boolean |
isMacOS() |
private void |
scanForArchives(java.util.ArrayList classPathList,
java.io.File dir) |
void |
setBootclasspathAccessRules(java.lang.String accessRules) |
void |
setJavaHome(java.io.File javaHome) |
addExtraProblems, addNewEntry, bind, bind, bind, bind, compile, compile, compile, compile, configure, disableAll, enableAll, extractDestinationPathFromSourceFile, getBatchRequestor, getCompilationUnits, getHandlingPolicy, getLibrariesFiles, getLibraryAccess, getProblemFactory, handleClasspath, handleErrorToken, handleInfoToken, handleModulepath, handleModuleSourcepath, handleWarningToken, initialize, initialize, initialize, initializeAnnotationProcessorManager, loggingExtraProblems, main, outputClassFiles, performCompilation, printUsage, processPathEntries, relocalize, setDestinationPath, setLocale, setPaths, shouldIgnoreOptionalProblems, tokenize, validateClasspathOptions, validateOptionsprivate static final java.io.FilenameFilter POTENTIAL_ZIP_FILTER
private java.io.File javaHome
private org.codehaus.plexus.logging.Logger mavenLogger
private java.lang.String bootclasspathAccessRules
private boolean explicitBootClasspath
public CompilerMain(java.io.PrintWriter outWriter,
java.io.PrintWriter errWriter,
boolean systemExitWhenFinished,
org.codehaus.plexus.logging.Logger logger)
public void setJavaHome(java.io.File javaHome)
public void setBootclasspathAccessRules(java.lang.String accessRules)
public java.io.File getJavaHome()
getJavaHome in class org.eclipse.jdt.internal.compiler.batch.Mainprotected java.util.ArrayList handleEndorseddirs(java.util.ArrayList endorsedDirClasspaths)
handleEndorseddirs in class org.eclipse.jdt.internal.compiler.batch.Mainprotected java.util.ArrayList handleExtdirs(java.util.ArrayList extdirsClasspaths)
handleExtdirs in class org.eclipse.jdt.internal.compiler.batch.Mainprotected java.util.ArrayList handleBootclasspath(java.util.ArrayList bootclasspaths,
java.lang.String customEncoding)
handleBootclasspath in class org.eclipse.jdt.internal.compiler.batch.Mainprivate boolean hasClassesDirWithJars()
protected boolean isMacOS()
private void scanForArchives(java.util.ArrayList classPathList,
java.io.File dir)