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, 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, verbose
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, handleWarningToken, initialize, initialize, initialize, initializeAnnotationProcessorManager, loggingExtraProblems, main, outputClassFiles, performCompilation, printUsage, processPathEntries, relocalize, setDestinationPath, setLocale, setPaths, tokenize, validateOptions
private 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.Main
protected java.util.ArrayList handleEndorseddirs(java.util.ArrayList endorsedDirClasspaths)
handleEndorseddirs
in class org.eclipse.jdt.internal.compiler.batch.Main
protected java.util.ArrayList handleExtdirs(java.util.ArrayList extdirsClasspaths)
handleExtdirs
in class org.eclipse.jdt.internal.compiler.batch.Main
protected java.util.ArrayList handleBootclasspath(java.util.ArrayList bootclasspaths, java.lang.String customEncoding)
handleBootclasspath
in class org.eclipse.jdt.internal.compiler.batch.Main
private boolean hasClassesDirWithJars()
protected boolean isMacOS()
private void scanForArchives(java.util.ArrayList classPathList, java.io.File dir)