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 71415 - [50cat] ProjectXmlSavedHook#projectXmlSaved() is not invoked when nbproject/project.xml is modified by hand
Summary: [50cat] ProjectXmlSavedHook#projectXmlSaved() is not invoked when nbproject/p...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-15 16:06 UTC by misterm
Modified: 2009-12-21 05:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2006-01-15 16:06:44 UTC
[ BUILD # : 20051218 ]
[ JDK VERSION : 1.4.2_xx ]

ProjectXmlSavedHook#projectXmlSaved() is not invoked when nbproject/project.xml is modified by hand. Javadoc for this class/method states it should be called whenever this file is modified.
Comment 1 Jan Lahoda 2006-01-15 19:38:55 UTC
I think this is a bug in the javadoc, the hook is IMO supposed to be called when
the project.xml is modified as part of the project save operation (inside the
IDE). Please note that the third sentence of the method's javadoc is "This is
called during a project save event and so runs with write access.".

The javadoc should be improved to clearly say that the hook is called only when
the project is saved (and project.xml is modified during the save).
Comment 2 Jesse Glick 2006-01-17 18:58:22 UTC
There was already a thread on the mailing list and I concurred with the reporter
that the hook ought to be called even when project.xml is modified (and saved)
manually. You would still want to regenerate build-impl.xml or whatever the
project normally does in this circumstance.
Comment 3 Jan Lahoda 2006-01-27 10:39:08 UTC
OK.
Comment 4 Milan Kubec 2008-09-29 11:33:11 UTC
This issue is in fact an enhancement.
Comment 5 Jesse Glick 2008-09-29 18:06:25 UTC
It is a defect - the implementation fails to comply with the specification - but probably not high priority.
Comment 6 Quality Engineering 2009-12-21 05:09:31 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team