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 15097

Summary: Backup files are created when generating from template under CVS filesystem.
Product: java Reporter: Jiri Kovalsky <jkovalsky>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED WONTFIX    
Severity: blocker CC: mkleint
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 12331    
Bug Blocks:    

Description Jiri Kovalsky 2001-09-03 16:28:12 UTC
Development build of NetBeans 3.3 #200109030100 on Windows 2000 with JDK 1.3.1

Description:
============
It is interesting but due to some reason there is backup file created immediate-
ly when generating it from template under CVS filesystem mounted using Built-in 
Client. These files are then stated in filesystem as [Local].

Steps to reproduce:
===================
1. Mount CVS filesystem using Built-in Client.
2. Create new bean using "New|Beans|Bean" popup menu somewhere underneath.
3. Verify externally that in fact two files were created physically.
Comment 1 Milos Kleint 2001-09-03 16:35:28 UTC
Reassigning to java (dunno if that's the best place though).
When doing backups, I don't create a backup for files that don't
exist, once the fileObject exists and it's outputstream is requested
(to be saved) I create a backup. 
I found out that for creating new from template, the original template
is stored first and then replaced with the right stuff.. the template
thingie is then saved as backup..

This is what the files differ at:
"package Templates.Classes;"
<snip the rest>

Comment 2 Svata Dedic 2001-09-10 18:25:47 UTC
Sorry, will not solve for 3.3: The template is instantiated (copied) 
on the disk first, then it is changed, reformatted, class is renamed 
and class members defined in the N.F.T. wizard are inserted.
I plan to change this weird templatizing in 3.4/4.0
Comment 3 Svata Dedic 2001-11-16 09:56:58 UTC
This is "as designed" for 3.3. Changing to a RFE. The solution 
depends on moving away from DataObject-bound services, so I will be 
linking more blockers for this to be implemented in the future.
Comment 4 Martin Matula 2004-11-15 12:59:30 UTC
The backup files are no longer created.