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 4575

Summary: Suggest option for property files, during create-from-template, to merge into existing.
Product: utilities Reporter: Jesse Glick <jglick>
Component: PropertiesAssignee: issues@utilities <issues>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 1999-10-25 19:59:43 UTC
Low priority, but would be cool IMHO:

If a .properties file is a template, during create-from-template if there is already a file of the same name in the target folder, instead of failing or replacing the old file, just add all keys from
this template to the existing one (probably the old keys should take priority in case of conflict, i.e. only add new keys). Maybe this behavior could be an option for the file if it was a template, ra
ther than the default behavior.

Justification: for API Support at least, we encourage use of Bundle.properties files. So sample code makes references to NbBundle, which looks for this by default. But, it is not possible to include B
undle.properties templates along with each specific template, because then people could not create from template twice in the same package--their old Bundle.properties would be overridden. There is th
e workaround of including only .properties files named according to the template, but then NbBundle.getBundle (Class) will not work, and there will be too many bundle files (one per package is more re

asonable).
Comment 1 Jesse Glick 2000-11-20 17:06:59 UTC
This has been implemented for a long time now.
Comment 2 Quality Engineering 2003-07-01 14:20:15 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.