//The build.xml was deleted after the isActionEnabled was called
NotifyDescriptor nd = new NotifyDescriptor.Message(NbBundle.getMessage(J2SEActionProvider.class,
"LBL_No_Build_XML_Found"), NotifyDescriptor.WARNING_MESSAGE);
DialogDisplayer.getDefault().notify(nd);
} else {
ActionUtils.runTarget(buildFo, targetNames, p).addTaskListener(new TaskListener() {
public void taskFinished(Task task) {
if (((ExecutorTask) task).result() != 0) {
synchronized (J2SEActionProvider.this) {
// #120843: if a build fails, disable dirty-list optimization.
dirty = null;