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.
[200701101900] I tried add test dependency to apisupport/project on org.openide.filesystems. It deletes all test dependencies. There is no undo (only cvs revert). The use case is reproducible on other project types with the same test dependencies.
Actually they are not deleted, the problem is that new <test-type>..</test-type> markup tag is created after existing one, this caused to remove nodes from the Projects view ;( generated (broken) project.xml ================================ <test-type> <name>unit</name> <test-dependency> <code-name-base>org.openide.filesystems</code-name-base> <compile-dependency/> </test-dependency> <test-dependency> <code-name-base>org.openide.awt</code-name-base> <compile-dependency/> </test-dependency> <test-dependency> <code-name-base>org.openide.util</code-name-base> <compile-dependency/> </test-dependency> </test-type> <test-type> <name>unit</name> <test-dependency> <code-name-base>org.openide.dialogs</code-name-base> <compile-dependency/> </test-dependency> </test-type> </test-dependencies> ================================ Tomas, this needs to be fixed ASAP ...
yes, this was already reproduced, see issue 91080.
Checking in ProjectXMLManager.java; /cvs/apisupport/project/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java,v <-- ProjectXMLManager.java new revision: 1.55; previous revision: 1.54 done
and test?
Tomas promised to write test on monday. Verified.
I added test as I promised:-) Checking in ProjectXMLManagerTest.java; /cvs/apisupport/project/test/unit/src/org/netbeans/modules/apisupport/project/ProjectXMLManagerTest.java,v <-- ProjectXMLManagerTest.java new revision: 1.37; previous revision: 1.36 done
Great!