Skip to main content



      Home
Home » Newcomers » Newcomers » .cproject and CVS
.cproject and CVS [message #255031] Wed, 30 April 2008 13:35 Go to next message
Eclipse UserFriend
Originally posted by: gaosipov.gmail.com

How to remove .cproject and .project from repository?
Re: .cproject and CVS [message #255035 is a reply to message #255031] Wed, 30 April 2008 14:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

delete locally, submit remotely?

or ssh to the cvs server and delete the actual files, if you don't care
about keeping their history (a cvs file is never deleted, just moved out
of view so it can be recovered if you need to later.

Osipov wrote:
> How to remove .cproject and .project from repository?
>
Re: .cproject and CVS [message #255074 is a reply to message #255035] Wed, 30 April 2008 18:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaosipov.gmail.com

Why Eclipse automatically upload .cproject file, when I press "Commit"?
Can I disable this? My chief demands no unnecessary files in repository.
After .cproject and .project was actually deleted (except history) from
CVS, Eclipse created it again.
Re: .cproject and CVS [message #255087 is a reply to message #255074] Wed, 30 April 2008 20:31 Go to previous messageGo to next message
Eclipse UserFriend
I'd suggest that the .cproject and .project files *are* necessary (they
contain important metadata for the project). Without these files, you'll
have to recreate the project every time you load from CVS.

That said, I believe that you can add the file names to the "Team |
Ignored Resources" page in the Preferences.

Wayne

On Wed, 2008-04-30 at 22:46 +0000, Osipov wrote:
> Why Eclipse automatically upload .cproject file, when I press "Commit"?
> Can I disable this? My chief demands no unnecessary files in repository.
> After .cproject and .project was actually deleted (except history) from
> CVS, Eclipse created it again.
>
Re: .cproject and CVS [message #255093 is a reply to message #255087] Wed, 30 April 2008 20:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Or select a file and right-click, then Team > Add to .cvsignore, if your
chief will allow *that* file instead. Depends on whether you want to
ignore it locally or have everyone who shares the project also ignore it.

Nick

Wayne Beaton wrote:
> I'd suggest that the .cproject and .project files *are* necessary (they
> contain important metadata for the project). Without these files, you'll
> have to recreate the project every time you load from CVS.
>
> That said, I believe that you can add the file names to the "Team |
> Ignored Resources" page in the Preferences.
>
> Wayne
>
> On Wed, 2008-04-30 at 22:46 +0000, Osipov wrote:
>> Why Eclipse automatically upload .cproject file, when I press "Commit"?
>> Can I disable this? My chief demands no unnecessary files in repository.
>> After .cproject and .project was actually deleted (except history) from
>> CVS, Eclipse created it again.
>>
>
Re: .cproject and CVS [message #255112 is a reply to message #255087] Thu, 01 May 2008 00:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaosipov.gmail.com

Wayne Beaton wrote:
> I'd suggest that the .cproject and .project files *are* necessary (they
> contain important metadata for the project). Without these files, you'll
> have to recreate the project every time you load from CVS.
Eclipse is my initiative. Other programmers of the same project don't use
it. There are .automake, makefiles all what is needed to built project.
And when I opened my .cproject file I saw some file paths, depended on me
local machine (e.g. "D:\cpp\..."). Even if the other programmers use
eclipse it wouldn't be suitable.

> That said, I believe that you can add the file names to the "Team |
> Ignored Resources" page in the Preferences.
I added ".project" and ".cproject" to the ignore resources, but them still
upload.
Re: .cproject and CVS [message #255114 is a reply to message #255093] Thu, 01 May 2008 00:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaosipov.gmail.com

Nick Boldt wrote:
> Or select a file and right-click, then Team > Add to .cvsignore, if your
> chief will allow *that* file instead. Depends on whether you want to
> ignore it locally or have everyone who shares the project also ignore it.

> Nick

"Team > Add to .cvsignore" and "Team > Add to Version Control" are grey,
and can't press them (I use CVS via extssh). But even if they are exist,
it wouldn't help me because thees files aren't shown in the project tree.
Re: .cproject and CVS [message #255118 is a reply to message #255114] Thu, 01 May 2008 00:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

You can manually create a .cvsignore file if you want...

It's just a list on files or patterns to ignore, one per line.

In your case, you'd want

..project
..cproject

If you're on Linux, do this:

cd /path/to/your/workspace/projectFolder
echo ".project" > .cvsignore
echo ".cproject" >> .cvsignore
cvs add .cvsignore
cvs ci -m "ignore project meta files" .cvsignore

If you're on Windows, my condolences. :P

Nick

Osipov wrote:
> Nick Boldt wrote:
>> Or select a file and right-click, then Team > Add to .cvsignore, if
>> your chief will allow *that* file instead. Depends on whether you want
>> to ignore it locally or have everyone who shares the project also
>> ignore it.
>
>> Nick
>
> "Team > Add to .cvsignore" and "Team > Add to Version Control" are grey,
> and can't press them (I use CVS via extssh). But even if they are exist,
> it wouldn't help me because thees files aren't shown in the project tree.
>
Re: .cproject and CVS [message #255125 is a reply to message #255118] Thu, 01 May 2008 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaosipov.gmail.com

Nick Boldt wrote:

> You can manually create a .cvsignore file if you want...

> It's just a list on files or patterns to ignore, one per line.

> In your case, you'd want

> ..project
> ..cproject

Maybe
project
cproject
???

> If you're on Linux, do this:

> cd /path/to/your/workspace/projectFolder
> echo ".project" >> .cvsignore
> echo ".cproject" >> .cvsignore
> cvs add .cvsignore
> cvs ci -m "ignore project meta files" .cvsignore

> If you're on Windows, my condolences. :P
Condolences accepted, but I created this file, however it doesn't work.
Re: .cproject and CVS [message #255175 is a reply to message #255114] Thu, 01 May 2008 10:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Osipov wrote:
> Nick Boldt wrote:
>> Or select a file and right-click, then Team > Add to .cvsignore, if
>> your chief will allow *that* file instead. Depends on whether you want
>> to ignore it locally or have everyone who shares the project also
>> ignore it.
>
>> Nick
>
> "Team > Add to .cvsignore" and "Team > Add to Version Control" are grey,
> and can't press them (I use CVS via extssh). But even if they are exist,
> it wouldn't help me because thees files aren't shown in the project tree.
>

Once a file has been added to CVS it can not be ignored with .cvsignore.
That is a limitation/feature of CVS and nothing to do with Eclipse.
If you really want them gone, you'll have to ask your CVS administrator
to manually remove them from the CVS server repository, then the
..cvsignore will work.
But I'll re-iterate that those files SHOULD be checked in to CVS - as
Wayne said, without them you'll have to re-configure the project in
Eclipse every time it is checked out. Really, the files are tiny and do
no harm to someone who is not using Eclipse.

Eric
Re: .cproject and CVS [message #255179 is a reply to message #255112] Thu, 01 May 2008 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Osipov wrote:
> Wayne Beaton wrote:
>> I'd suggest that the .cproject and .project files *are* necessary (they
>> contain important metadata for the project). Without these files, you'll
>> have to recreate the project every time you load from CVS.
> Eclipse is my initiative. Other programmers of the same project don't
> use it. There are .automake, makefiles all what is needed to built
> project. And when I opened my .cproject file I saw some file paths,
> depended on me local machine (e.g. "D:\cpp\..."). Even if the other
> programmers use eclipse it wouldn't be suitable.

There are ways to avoid absolute paths, at least for Java projects (I'd
bet that C projects are the same). If you tell us the details (post the
..cproject file) we can probably help.

Note: I've copied the CDT newsgroup to this reply.

Eric
Re: .cproject and CVS [message #255217 is a reply to message #255031] Thu, 01 May 2008 12:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaosipov.gmail.com

Problem solved. I just commited .cvsignore and, after it, removed thees
files from repository.
Re: .cproject and CVS [message #255248 is a reply to message #255112] Thu, 01 May 2008 17:04 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"Osipov" <gaosipov@gmail.com> wrote in message
news:180250309ee6069bca4ac5ce35c5e3fc$1@www.eclipse.org...
> Wayne Beaton wrote:
> > I'd suggest that the .cproject and .project files *are* necessary (they
> > contain important metadata for the project). Without these files, you'll
> > have to recreate the project every time you load from CVS.
> Eclipse is my initiative. Other programmers of the same project don't use
> it. There are .automake, makefiles all what is needed to built project.
> And when I opened my .cproject file I saw some file paths, depended on me
> local machine (e.g. "D:\cpp\..."). Even if the other programmers use
> eclipse it wouldn't be suitable.
>
Are the automake makefiles allowed to be added to CVS? The .cproject and
..project files are a different form of makefiles. They correspond to a
different set of tools, but they provide a similar purpose. They define the
project and how to build it.

> > That said, I believe that you can add the file names to the "Team |
> > Ignored Resources" page in the Preferences.
> I added ".project" and ".cproject" to the ignore resources, but them still
> upload.
>
Previous Topic:Breakpoint doesn't break
Next Topic:eclipse - message opening a project
Goto Forum:
  


Current Time: Thu Jul 03 20:53:41 EDT 2025

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

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

Back to the top