Eclipse Clean build removing hidden files [message #176675] |
Thu, 26 October 2006 09:49 |
Eclipse User |
|
|
|
Originally posted by: rydtoft.hotmail.com
Hi group,
I use Eclipse and svn. Eclipse builds into a /classes folder which is also
in the svn repository and as such has a .svn sub folder in /classes/.svn
When I use the Clean build option in Eclipse (i.e. Project -> Clean) it
COMPLETELY wipes my /classes folder INCLUDING removing the .svn folder.
This is a problem as the .svn folder should never be deleted.
Is there a way to tell Eclipse to ignore certain folders and/or files when
using the Project -> Clean command?
Cheers Michael
|
|
|
|
Re: Eclipse Clean build removing hidden files [message #177410 is a reply to message #176675] |
Mon, 30 October 2006 15:02 |
Eclipse User |
|
|
|
Originally posted by: eclipse4.rizzoweb.com
Michael Rydtoft wrote:
> Hi group,
>
> I use Eclipse and svn. Eclipse builds into a /classes folder which is
> also in the svn repository and as such has a .svn sub folder in
> /classes/.svn
>
> When I use the Clean build option in Eclipse (i.e. Project -> Clean) it
> COMPLETELY wipes my /classes folder INCLUDING removing the .svn folder.
> This is a problem as the .svn folder should never be deleted.
>
> Is there a way to tell Eclipse to ignore certain folders and/or files
> when using the Project -> Clean command?
I agree with the earlier response that it is not generally a good idea
to include derived content (such as .class files) in the repository. It
goes against what is a widely accepted "best practice" of the
Configuration Management/SCM world.
Having said that, you can probably get things set up to leave the files
alone. There is a Preference setting (under Java > Compiler > Building)
to disable the cleaning of the output directory, which you could use.
The ramification of doing so is that a "clean" build is no longer such -
it will leave behind old files.
You could also set up Eclipse to build into a different directory and
then use a small Ant script to copy the .class files into the directory
that is checked in to SVN.
Still, I would re-think the idea of having the compile output location
be checked in, unless there is some peculiar, specific reason your
project needs it that way.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.07641 seconds