Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » eclipse and cvs ignore
eclipse and cvs ignore [message #245903] Wed, 18 July 2007 01:52 Go to next message
Eclipse UserFriend
Originally posted by: fluca1978.infinito.it

Hi all,
I'm not very expert in using eclipse with cvs, thus you have some
documentation to point me at please advice. By the way, is there a way to
configure eclipse to ignore some files/folder from the cvs commit? For
instance I don't like to get the ide committing the .project file and some
other environment specific files.

Thanks,
Luca
Re: eclipse and cvs ignore [message #245909 is a reply to message #245903] Wed, 18 July 2007 04:13 Go to previous messageGo to next message
Eclipse UserFriend
Luca Ferrari wrote:

>Hi all,
>I'm not very expert in using eclipse with cvs, thus you have some
>documentation to point me at please advice. By the way, is there a way to
>configure eclipse to ignore some files/folder from the cvs commit? For
>instance I don't like to get the ide committing the .project file and some
>other environment specific files.
>
>
Add a .cvsignore file into your project and commit it.

Dani

>Thanks,
>Luca
>
>
Re: eclipse and cvs ignore [message #245924 is a reply to message #245903] Wed, 18 July 2007 09:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Luca Ferrari wrote:
> Hi all,
> I'm not very expert in using eclipse with cvs, thus you have some
> documentation to point me at please advice. By the way, is there a way to
> configure eclipse to ignore some files/folder from the cvs commit? For
> instance I don't like to get the ide committing the .project file and some
> other environment specific files.

It is usually a good idea to check in the .project and .classpath files,
since those define your project to Eclipse. If they were to be lost or
corrupted you'd have to re-configure the project; or if the project were
to be checked out into another Eclipse installation, you'd usually want
them there so that Eclipse would automatically congfigure the project.

Having said that, you can right-click any file in a CVS-shared project
and choose Team > Add to .cvsignore. Then check in the .cvsignore file.

Hope this helps,
Eric
Re: eclipse and cvs ignore [message #245934 is a reply to message #245924] Wed, 18 July 2007 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fluca1978.infinito.it

Eric Rizzo wrote:

> Having said that, you can right-click any file in a CVS-shared project
> and choose Team > Add to .cvsignore. Then check in the .cvsignore file.


I've tried to do that from the navigator view but the add to .cvsignore item
is not enabled. What am I doing wrong?

Thanks,
Luca
Re: eclipse and cvs ignore [message #245938 is a reply to message #245934] Wed, 18 July 2007 12:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If it has already been committed once or if the parent folder has not
yet been committed once, then it is not available.

In other words the parent folder must have been committed (or at least
registered as going to CVS) and the file itself must never of been
committed.

Luca Ferrari wrote:
> Eric Rizzo wrote:
>
>> Having said that, you can right-click any file in a CVS-shared project
>> and choose Team > Add to .cvsignore. Then check in the .cvsignore file.
>
>
> I've tried to do that from the navigator view but the add to .cvsignore item
> is not enabled. What am I doing wrong?
>
> Thanks,
> Luca
Re: eclipse and cvs ignore [message #245984 is a reply to message #245938] Thu, 19 July 2007 05:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fluca1978.infinito.it

Rich Kulp wrote:

> If it has already been committed once or if the parent folder has not
> yet been committed once, then it is not available.
>

How can I remove it from the cvs using the command line without corrupting
the project? Should I checkout the project again?

Luca
Re: eclipse and cvs ignore [message #245989 is a reply to message #245984] Thu, 19 July 2007 06:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mauro.molinari.cardinis.com

Luca Ferrari ha scritto:
> Rich Kulp wrote:
>
>> If it has already been committed once or if the parent folder has not
>> yet been committed once, then it is not available.
>>
>
> How can I remove it from the cvs using the command line without corrupting
> the project? Should I checkout the project again?
>
> Luca

Make a backup copy of your file, then delete it from your project within
Eclipse and commit the deletion. Then, restore the backup copy (now it
should be marked as "new") and do Team => Add to .cvsignore.

By the way, as long as you don't need to store in the CVS the fact you
want to ignore one or more files, you don't need to commit the
..cvsignore file itself: however, in order to avoid Eclipse to force you
to commit it, you may need to add .cvsignore to .cvsignore itself
(sorry, it's not a pun!). As you don't see .cvsignore in the navigator
view, you can do that as follows: type ctrl+shift+R, type .cvsignore,
select the one you're interested in, then, in the editor, add a row for
just .cvsignore

Hope to have been of help.

Mauro.
Re: eclipse and cvs ignore [message #245999 is a reply to message #245989] Thu, 19 July 2007 08:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I recommend checking in the .cvsignore too if you will be checking the
project out into another workspace or someone else will check it out. If
you don't check it in, then it is possible that the other workspace
could regenerate the offending file and then check it back in, thereby
defeating the purpose of the .cvsignore in the first place.

Rich
Re: eclipse and cvs ignore [message #246024 is a reply to message #245989] Thu, 19 July 2007 13:11 Go to previous message
Eclipse UserFriend
Originally posted by: fluca1978.infinito.it

Mauro Molinari wrote:

> Make a backup copy of your file, then delete it from your project within
> Eclipse and commit the deletion. Then, restore the backup copy (now it
> should be marked as "new") and do Team => Add to .cvsignore.
>
> By the way, as long as you don't need to store in the CVS the fact you
> want to ignore one or more files, you don't need to commit the
> .cvsignore file itself: however, in order to avoid Eclipse to force you
> to commit it, you may need to add .cvsignore to .cvsignore itself
> (sorry, it's not a pun!). As you don't see .cvsignore in the navigator
> view, you can do that as follows: type ctrl+shift+R, type .cvsignore,
> select the one you're interested in, then, in the editor, add a row for
> just .cvsignore


It seems it worked!
Thanks.

P.S.
I'll not commit the .cvsignore because I hope other developers will do the
same, and after all they're not supposed to use eclipse!
Previous Topic:Cannot access file from view
Next Topic:Java content assist: Typing in '(' after the method name automatically selected the method...?
Goto Forum:
  


Current Time: Sat May 03 12:12:08 EDT 2025

Powered by FUDForum. Page generated in 0.03432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top