This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: - Create New Web Application with Existing Ant Script: add several JARs to its classpath - Right-click a source package and select Compile - Message about ide-file-targets.xml creation is shown. Proceed with creation. - You could verify that Compile Package menu item works for source packages. - Open Files tab - Delete nbproject\ide-file-targets.xml file - Try to Compile Package again. Nothing is done. This is usability issue. Even the ide-file-targets.xml file is deleted action "compile.single" from project.xml is still linked with it. No diagnostic message is shown. No message for recreation is shown.
I am attaching patch that shows a dialog if the script file is not found. Is this an acceptable solution?
Created attachment 21757 [details] Patch showing dialog if the script file is not found.
Just use NotifyDescriptor.MESSAGE; no need for ErrorManager here.
Fix by showing error dialog if the script file is missing: Checking in freeform/src/org/netbeans/modules/ant/freeform/Actions.java; /cvs/ant/freeform/src/org/netbeans/modules/ant/freeform/Actions.java,v <-- Actions.java new revision: 1.13; previous revision: 1.12 done Checking in freeform/src/org/netbeans/modules/ant/freeform/Bundle.properties; /cvs/ant/freeform/src/org/netbeans/modules/ant/freeform/Bundle.properties,v <-- Bundle.properties new revision: 1.15; previous revision: 1.14 done