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 - Backup files are created when generating from template under CVS filesystem.
Summary: Backup files are created when generating from template under CVS filesystem.
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on: 12331
Blocks:
  Show dependency tree
 
Reported: 2001-09-03 16:28 UTC by Jiri Kovalsky
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.