Bug 32323

Summary: CVS information on class-Files lost during "rebuild project"
Product: [Eclipse Project] JDT Reporter: Franz van Betteraey <fvbetteraey>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.2   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Franz van Betteraey CLA 2003-02-20 03:33:14 EST
Hi,

I have some reasons to CVS-check-in my code AND class-Files. But when I make a
rebuild of my java project, all the CVS information on my class-File-directory
is gone. It seems to be that eclipse first removes the whole class-file
directory (with the CVS-subfolder) and then creates a new one.

Updating, re-adding or commiting the class files after this is impossible.
Maybe the rebuild-process can be modified to let the CVS information (CVS
directories) where they are.

Thanks and best regards
Franz
Comment 1 Philipe Mulet CLA 2003-02-20 15:05:18 EST
Franz
  Did you try to turn off the output folder cleaning on rebuild ? Check the Java
  compiler preferences Java>Compiler>Build path>Allow to clean...

  Does this improve the behavior ?

Kent
  Wouldn't it work better if the batch builder did check for identical bytes
  before dumping a classfile (as does the incremental builder) ?
Comment 2 Kent Johnson CLA 2003-02-20 17:19:11 EST
Once the Java>Compiler>Build path>Allow to clean... option is set the builder 
only changes the file's contents if it already exists on disk. It does NOT 
delete it & recreate it.

This should not change any other attributes of the .class file.
Comment 3 Franz van Betteraey CLA 2003-02-25 02:55:27 EST
Hi Philippe and Kent,

thank you for your help. Seems to be a very good tip, but I am to stupid to find
this preference.

Im using eclipse 2.0.2 with JDT core 2.0.2.

I checked Window->Preferences->Java->Compiler but there is no "Build path" and
no "Allow to clean..." option. Apparently I's searching the wrong place. Sorry,
but could you please give me a detailed description where to find the option
(maybe it is in a context menu?)

Thanks
Franz
Comment 4 Kent Johnson CLA 2003-02-25 11:07:16 EST
The option was added after 2.0.2. You'll find it in the latest 2.1 RC1 drop.

Closing.