Bug 32323 - CVS information on class-Files lost during "rebuild project"
Summary: CVS information on class-Files lost during "rebuild project"
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 03:33 EST by Franz van Betteraey CLA
Modified: 2003-03-17 11:13 EST (History)
0 users

See Also:


Attachments

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