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.
How to reproduce: 1) Create Jar Recipe 2) Add some FormDataObject into it 3) NOTE - FormDataObject represents two FileObjects 4) Specify "Target Name" of inserted node 5) Compile Jar Recipe 6) ERROR - Error dialog appears with message: duplicate entry: <Target Name> This prevents the contents of the archive from being updated The problem is that Jar Packager tries to rename all file represented by node to specified <Target Name>. Therefore there all file duplicities.
I believe the issue should be resolved this way: the changed target name applies only to the name, but all the fileobjects keep their initial file extensions. Unless the new target name includes a dot and extension, in this case we should attempt to change both name and extension. (for example to allow change from read.me to readme.txt)
I fixed it according to Milos' proposal. I don't know if it makes it more usable than it was - the property cannot have any good meaning at all, but is is probably the best we can do with such an uuugglyy thing. Checked in: JarCreator.java , ver.1.30
Verified