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.
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.
*** Issue 42419 has been marked as a duplicate of this issue. ***
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();
Have working patch for *.properties (not for *.xml).
Changes in *.properties should now be fired.
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
Verified.