Ajde.getDefault().getErrorHandler().handleError("Compile error, caught Throwable: " + e.toString(), e);
} finally {
warnings = compilerMessages.hasWarning();
- progressMonitor.finish();
+ progressMonitor.finish(compilerAdapter.wasFullBuild());
}
notifyCompileFinished(configFile, lastCompileTime, succeeded, warnings);
}
TaskListManager taskListManager = myHandler;
BuildProgressMonitor buildProgressMonitor =
new DefaultBuildProgressMonitor(new Frame()) {
- public void finish() {
- super.finish();
+ public void finish(boolean b) {
+ super.finish(b);
setEndTime(System.currentTimeMillis());
}
};
hasWarning = true;
}
}
+ public void buildSuccessful(boolean wasFullBuild) {
+ // TODO Auto-generated method stub
+
+ }
}
class VoidInvocationHandler implements InvocationHandler {
public boolean wasFullBuild() {
+ // alternatives: statelistener is debug interface, progressmonitor is new proper interface (see pr145689)
+// return MyBuildProgressMonitor.wasFullBuild();
return MyStateListener.wasFullBuild();
}
public static void reset() {
_instance.finished = false;
+ _instance.wasFullBuild=true;
_instance.compiledFiles.clear();
_instance.wovenClasses.clear();
}
private long starttime = 0;
private long totaltimetaken = 0;
private boolean finished = false;
+ private boolean wasFullBuild = true;
public void start(String configFile) {
starttime = System.currentTimeMillis();
return 100;
}
- public void finish() {
+ public void finish(boolean b) {
log("BuildProgressMonitor.finish()");
_instance.finished=true;
+ _instance.wasFullBuild = b;
_instance.totaltimetaken=(System.currentTimeMillis()-starttime);
}
if (VERBOSE) System.out.println(s);
}
+ public static boolean wasFullBuild() {
+ return _instance.wasFullBuild;
+ }
+
}