protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); this.incrementalBuilder.processAnnotationResults(results); }
protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); this.incrementalBuilder.processAnnotationResults(results); }
@Override protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this, this.compilationGroup); this.incrementalBuilder.processAnnotationResults(results); }
protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); this.incrementalBuilder.processAnnotationResults(results); }
protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); this.incrementalBuilder.processAnnotationResults(results); }
protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); this.incrementalBuilder.processAnnotationResults(results); }
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this, this.compilationGroup); int count = this.secondaryTypes.size(); Set<String> qualifiedNames = new HashSet<>(count * 2); Set<String> simpleNames = new HashSet<>(count); Set<String> rootNames = new HashSet<>(3); while (--count >=0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); } this.incrementalBuilder.addAffectedSourceFiles( qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }
protected IncrementalImageBuilder(JavaBuilder javaBuilder, State buildState, CompilationGroup compilationGroup) { super(javaBuilder, true, buildState, compilationGroup); this.nameEnvironment.isIncrementalBuild = true; this.makeOutputFolderConsistent = JavaCore.ENABLED.equals( javaBuilder.javaProject.getOption(JavaCore.CORE_JAVA_BUILD_RECREATE_MODIFIED_CLASS_FILES_IN_OUTPUT_FOLDER, true)); if (compilationGroup == CompilationGroup.MAIN) { final IncrementalImageBuilder builder = new IncrementalImageBuilder(javaBuilder, this.newState, CompilationGroup.TEST); if (builder.sourceLocations.length > 0) { this.testImageBuilder = builder; this.testImageBuilder.resetCollections(); } } }
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); int count = this.secondaryTypes.size(); StringSet qualifiedNames = new StringSet(count * 2); StringSet simpleNames = new StringSet(count); StringSet rootNames = new StringSet(3); while (--count >=0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); } this.incrementalBuilder.addAffectedSourceFiles( qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); int count = this.secondaryTypes.size(); StringSet qualifiedNames = new StringSet(count * 2); StringSet simpleNames = new StringSet(count); StringSet rootNames = new StringSet(3); while (--count >=0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); } this.incrementalBuilder.addAffectedSourceFiles( qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); int count = this.secondaryTypes.size(); StringSet qualifiedNames = new StringSet(count * 2); StringSet simpleNames = new StringSet(count); StringSet rootNames = new StringSet(3); while (--count >=0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); } this.incrementalBuilder.addAffectedSourceFiles( qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); int count = this.secondaryTypes.size(); StringSet qualifiedNames = new StringSet(count * 2); StringSet simpleNames = new StringSet(count); StringSet rootNames = new StringSet(3); while (--count >=0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); } this.incrementalBuilder.addAffectedSourceFiles( qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); int count = this.secondaryTypes.size(); StringSet qualifiedNames = new StringSet(count * 2); StringSet simpleNames = new StringSet(count); StringSet rootNames = new StringSet(3); while (--count >=0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); } this.incrementalBuilder.addAffectedSourceFiles( qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }
private void buildDeltas(SimpleLookupTable deltas) { this.notifier.checkCancel(); this.notifier.subTask(Messages.bind(Messages.build_preparingBuild, this.currentProject.getName())); if (DEBUG && this.lastState != null) System.out.println("JavaBuilder: Clearing last state : " + this.lastState); //$NON-NLS-1$ clearLastState(); // clear the previously built state so if the build fails, a full build will occur next time IncrementalImageBuilder imageBuilder = new IncrementalImageBuilder(this); if (imageBuilder.build(deltas)) { recordNewState(imageBuilder.newState); } else { if (DEBUG) System.out.println("JavaBuilder: Performing full build since incremental build failed"); //$NON-NLS-1$ buildAll(); } }
private void buildDeltas(SimpleLookupTable deltas) { this.notifier.checkCancel(); this.notifier.subTask(Messages.bind(Messages.build_preparingBuild, this.currentProject.getName())); if (DEBUG && this.lastState != null) System.out.println("Clearing last state : " + this.lastState); //$NON-NLS-1$ clearLastState(); // clear the previously built state so if the build fails, a full build will occur next time IncrementalImageBuilder imageBuilder = new IncrementalImageBuilder(this); if (imageBuilder.build(deltas)) { recordNewState(imageBuilder.newState); } else { if (DEBUG) System.out.println("Performing full build since incremental build failed"); //$NON-NLS-1$ buildAll(); } }
private void buildDeltas(SimpleLookupTable deltas) { this.notifier.checkCancel(); this.notifier.subTask(Messages.bind(Messages.build_preparingBuild, this.currentProject.getName())); if (DEBUG && this.lastState != null) System.out.println("JavaBuilder: Clearing last state : " + this.lastState); //$NON-NLS-1$ clearLastState(); // clear the previously built state so if the build fails, a full build will occur next time IncrementalImageBuilder imageBuilder = new IncrementalImageBuilder(this); if (imageBuilder.build(deltas)) { recordNewState(imageBuilder.newState); } else { if (DEBUG) System.out.println("JavaBuilder: Performing full build since incremental build failed"); //$NON-NLS-1$ buildAll(); } }
private void buildDeltas(SimpleLookupTable deltas) { this.notifier.checkCancel(); this.notifier.subTask(Messages.bind(Messages.build_preparingBuild, this.currentProject.getName())); if (DEBUG && this.lastState != null) System.out.println("JavaBuilder: Clearing last state : " + this.lastState); //$NON-NLS-1$ clearLastState(); // clear the previously built state so if the build fails, a full build will occur next time IncrementalImageBuilder imageBuilder = new IncrementalImageBuilder(this); if (imageBuilder.build(deltas)) { recordNewState(imageBuilder.newState); } else { if (DEBUG) System.out.println("JavaBuilder: Performing full build since incremental build failed"); //$NON-NLS-1$ buildAll(); } }
private void buildDeltas(SimpleLookupTable deltas) { this.notifier.checkCancel(); this.notifier.subTask(Messages.bind(Messages.build_preparingBuild, this.currentProject.getName())); if (DEBUG && this.lastState != null) System.out.println("JavaBuilder: Clearing last state : " + this.lastState); //$NON-NLS-1$ clearLastState(); // clear the previously built state so if the build fails, a full build will occur next time IncrementalImageBuilder imageBuilder = new IncrementalImageBuilder(this); if (imageBuilder.build(deltas)) { recordNewState(imageBuilder.newState); } else { if (DEBUG) System.out.println("JavaBuilder: Performing full build since incremental build failed"); //$NON-NLS-1$ buildAll(); } }
private void buildDeltas(SimpleLookupTable deltas) { this.notifier.checkCancel(); this.notifier.subTask(Messages.bind(Messages.build_preparingBuild, this.currentProject.getName())); if (DEBUG && this.lastState != null) System.out.println("JavaBuilder: Clearing last state : " + this.lastState); //$NON-NLS-1$ clearLastState(); // clear the previously built state so if the build fails, a full build will occur next time IncrementalImageBuilder imageBuilder = new IncrementalImageBuilder(this); if (imageBuilder.build(deltas)) { recordNewState(imageBuilder.newState); } else { if (DEBUG) System.out.println("JavaBuilder: Performing full build since incremental build failed"); //$NON-NLS-1$ buildAll(); } }