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 42147 - AntProjectHelper should fire changes in *.xml/*.properties files if they change on disk
Summary: AntProjectHelper should fire changes in *.xml/*.properties files if they chan...
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: API
: 42419 (view as bug list)
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-04-19 23:56 UTC by Jesse Glick
Modified: 2006-03-24 10:18 UTC (History)
1 user (show)

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 Jesse Glick 2004-04-19 23:56:53 UTC
I.e. if the Filesystems API is used to modify
project metadata files, AntProjectEvent's should
be fired. Currently the events are only fired in
case the file is modified via the APH methods such
as putProperties or putPrimaryConfigurationData.
Comment 1 Jesse Glick 2004-04-24 02:27:05 UTC
*** Issue 42419 has been marked as a duplicate of this issue. ***
Comment 2 Jesse Glick 2004-05-01 17:24:16 UTC
Also metadata should preferably be locked (FileLock) while the data is
being modified; probably requires some kind of API change, e.g.

antProjectHelper.lockMetadata();
// show nonmodal customizer
// ...
// nonmodal customizer is closed
antProjectHelper.unlockMetadata();
Comment 3 Jesse Glick 2004-06-22 19:43:10 UTC
Have working patch for *.properties (not for *.xml).
Comment 4 Jesse Glick 2004-06-22 23:17:30 UTC
Changes in *.properties should now be fired.
Comment 5 Jesse Glick 2004-06-26 17:41:43 UTC
committed   * Up-To-Date  1.16       
ant/project/src/org/netbeans/spi/project/support/ant/AntProjectHelper.java
committed   * Up-To-Date  1.5        
ant/project/src/org/netbeans/spi/project/support/ant/ProjectProperties.java
committed   * Up-To-Date  1.12       
ant/project/test/unit/src/org/netbeans/spi/project/support/ant/AntProjectHelperTest.java
added       * Up-To-Date  1.1        
ant/project/test/unit/src/org/netbeans/spi/project/support/ant/data/project-modified.xml
Comment 6 Jaromir Uhrik 2005-07-14 16:20:05 UTC
Verified.