protected void initialize(PrintWriter outWriter, PrintWriter errWriter, boolean systemExit, Map<String, String> customDefaultOptions, CompilationProgress compilationProgress) { this.logger = new Logger(this, outWriter, errWriter); this.proceed = true; this.out = outWriter; this.err = errWriter; this.systemExitWhenFinished = systemExit; this.options = new CompilerOptions().getMap(); this.ignoreOptionalProblemsFromFolders = null; this.progress = compilationProgress; if (customDefaultOptions != null) { this.didSpecifySource = customDefaultOptions.get(CompilerOptions.OPTION_Source) != null; this.didSpecifyTarget = customDefaultOptions.get(CompilerOptions.OPTION_TargetPlatform) != null; for (Iterator<Map.Entry<String, String>> iter = customDefaultOptions.entrySet().iterator(); iter.hasNext();) { Map.Entry<String, String> entry = iter.next(); this.options.put(entry.getKey(), entry.getValue()); } } else { this.didSpecifySource = false; this.didSpecifyTarget = false; } this.classNames = null; } protected void initializeAnnotationProcessorManager() {
String fileName = null; if (generatePackagesStructure) { fileName = buildFileName(outputPath, relativeFileName); } else { char fileSeparatorChar = File.separatorChar; try { this.parameters.put(Logger.PATH, f.getCanonicalPath()); printTag(Logger.CLASS_FILE, this.parameters, true, true); } catch (IOException e) { logNoClassFileCreated(outputPath, relativeFileName, e);
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings, infos); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
if (problem != null) { currentMain.globalProblemsCount++; logProblem(problem, localProblemCount, currentMain.globalProblemsCount, unitSource); localProblemCount++; if (problem.isError()) { startLoggingProblems(errors, warnings); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() != IProblem.Task) { logXmlProblem(problem, unitSource); endLoggingProblems(); startLoggingTasks(tasks); for (int i = 0; i < count; i++) { CategorizedProblem problem = problems[i]; if (problem!= null) { if (problem.getID() == IProblem.Task) { logXmlTask(problem, unitSource); endLoggingTasks();
this.logger.logIncorrectVMVersionForAnnotationProcessing(); this.compilerOptions.produceReferenceInfo = this.produceRefInfo; try { this.logger.startLoggingSources(); this.batchCompiler.compile(getCompilationUnits()); } finally { this.logger.endLoggingSources(); this.compilerStats[this.currentRepetition] = this.batchCompiler.stats; this.logger.printStats();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();
if (this.showProgress) this.logger.compiling(); for (this.currentRepetition = 0; this.currentRepetition < this.maxRepetition; this.currentRepetition++) { this.globalProblemsCount = 0; this.logger.flush(); this.logger.logRepetition(this.currentRepetition, this.maxRepetition); this.logger.logAverage(); if (this.showProgress) this.logger.printNewLine(); this.logger.flush(); this.logger.close(); System.exit(this.globalErrorsCount > 0 ? -1 : 0); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.logException(e); if (this.systemExitWhenFinished) { this.logger.flush(); this.logger.close(); System.exit(-1); this.logger.flush(); this.logger.close();