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 11979 - Moved build script is executed in old location
Summary: Moved build script is executed in old location
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 12012 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-05-07 10:45 UTC by Build Virtual User
Modified: 2002-01-22 10:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to fix (1.81 KB, patch)
2001-06-21 21:13 UTC, Jesse Glick
Details | Diff
exception stact trace (1.42 KB, text/plain)
2001-07-20 20:34 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Build Virtual User 2001-05-07 10:45:29 UTC
How to reproduce it:
- execute any build script
- move that script into different location (another folder)
- try to execute that script again a you get FileNotFoundException looking for 
the file at old location
Comment 1 Jesse Glick 2001-05-07 15:05:24 UTC
Fixed in the trunk:

AntProjectDataObject.java 1.4
AntProjectSupport.java 1.11
Comment 2 Build Virtual User 2001-05-09 14:41:31 UTC
*** Issue 12012 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2001-06-21 20:29:00 UTC
Milan please verify that this is fixed...
Comment 4 Jesse Glick 2001-06-21 21:13:19 UTC
Created attachment 1673 [details]
Patch to fix
Comment 5 Milan Kubec 2001-06-22 09:38:40 UTC
FileNotFoundException is gone, but after cutting and pasting back to original location when I try execute it I get
FileStateInvalidException:
org.openide.loaders.DataObjectNotFoundException
   at org.openide.loaders.DataObject.find(DataObject.java:447)

Full thread dump attached.
Comment 6 Milan Kubec 2001-06-22 09:59:00 UTC
Created attachment 1677 [details]
exception stact trace
Comment 7 Milan Kubec 2001-06-22 13:48:59 UTC
reopenning
Comment 8 Jesse Glick 2001-06-22 15:12:55 UTC
I believe what you see is a totally different bug; that if there is existing
output from some file which has been hyperlinked in the Output Window, and you
can delete or otherwise get rid of that file, at some point after that (e.g.
next time you show anything in that Output tab), this exception will be shown.
As far as I know it is harmless. If you agree, please mark this bug fixed again,
and file a new bug for me with this stack trace (I have a fix prepared, will
test soon).
Comment 9 Jesse Glick 2001-06-22 15:14:44 UTC
Patch reviewed by Ales Kemr
Comment 10 Milan Kubec 2001-06-22 15:43:22 UTC
Yes, it's completly different bug :-(
Comment 11 Milan Kubec 2001-06-22 15:44:20 UTC
Verified in build 20010622.
Comment 12 Jesse Glick 2001-06-26 14:24:54 UTC
Merged to pilsen_fcs, should be in 3.2.1 later.
Comment 13 Jesse Glick 2002-01-22 10:55:16 UTC
Hopefully now fixed in 3.4 dev trunk as well for the case that a
parent folder is renamed. Actually observed with a menu item shortcut
rather than a normal script.

AntProjectSupport.java 1.15