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 - Nothing is done if ide-file-targets.xml file is deleted
Summary: Nothing is done if ide-file-targets.xml file is deleted
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 15:32 UTC by Alexander Kouznetsov
Modified: 2005-09-05 09:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch showing dialog if the script file is not found. (2.55 KB, patch)
2005-04-20 13:39 UTC, Jan Lahoda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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