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.

Bug 57011

Summary: Nothing is done if ide-file-targets.xml file is deleted
Product: projects Reporter: Alexander Kouznetsov <mrkam>
Component: Ant FreeformAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: Patch showing dialog if the script file is not found.

Description Alexander Kouznetsov 2005-03-25 15:32:34 UTC
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.
Comment 1 Jan Lahoda 2005-04-20 13:38:15 UTC
I am attaching patch that shows a dialog if the script file is not found. Is
this an acceptable solution?
Comment 2 Jan Lahoda 2005-04-20 13:39:20 UTC
Created attachment 21757 [details]
Patch showing dialog if the script file is not found.
Comment 3 Jesse Glick 2005-04-20 17:14:05 UTC
Just use NotifyDescriptor.MESSAGE; no need for ErrorManager here.
Comment 4 Jan Lahoda 2005-04-21 10:36:25 UTC
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