コード例 #1
0
 private void buildAll() {
   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();
   BatchImageBuilder imageBuilder = new BatchImageBuilder(this, true);
   imageBuilder.build();
   recordNewState(imageBuilder.newState);
 }
コード例 #2
0
 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();
   }
 }