Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » How to make SVN ignore everything in the "target" directory?
How to make SVN ignore everything in the "target" directory? [message #521997] Fri, 19 March 2010 15:12 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
Whenever I do a project checkin, it always flags all the files in the "target" directory tree, even though any files in that directory tree should be ignored. So, I tried adding "target" to the "svn:ignore" property in the project properties. I then reverted all the files in that tree that Subversive said I had checked out, then I did a project clean, and then I brought up the "commit" dialog to see what files Subversive thought I had checked out now. It still had all the files in the "target" tree checked out.

Is the "svn:ignore" property only used at the base file name level? How do I get it to ignore everything in a directory tree?
Re: How to make SVN ignore everything in the "target" directory? [message #522307 is a reply to message #521997] Mon, 22 March 2010 03:58 Go to previous messageGo to next message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello David,

There's a 'Add to svn:ignore' action which allows to specify resources which
you want to ignore. So in your case where you want to ignore 'target'
directory, just select this directory, right-click and select 'Add to
svn:ignore' action and then press Ok.

> Whenever I do a project checkin, it always flags all the files in the
> "target" directory tree, even though any files in that directory tree
> should be ignored. So, I tried adding "target" to the "svn:ignore"
> property in the project properties. I then reverted all the files in that
> tree that Subversive said I had checked out, then I did a project clean,
> and then I brought up the "commit" dialog to see what files Subversive
> thought I had checked out now. It still had all the files in the "target"
> tree checked out.
>
> Is the "svn:ignore" property only used at the base file name level? How
> do I get it to ignore everything in a directory tree?
Re: How to make SVN ignore everything in the "target" directory? [message #522492 is a reply to message #522307] Mon, 22 March 2010 19:07 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
That doesn't help, as "add to svn:ignore..." is insensitive when I right-click on "target". I get the same with the subdirectory of "target", which is "test-classes". The subdirectory of that, named "config" is the first entry in the tree which has a "?" on it in the Package Explorer, indicating it's not an element yet. When I right-click that, I do get the option to add that to "svn:ignore", but this bothers me. Does that mean that any element in the entire project which has a file name with "config" in it will be ignored? That's not what I need. This ability to ignore certain elements needs the ability to specify the "context" of the element, being what directory the element is in. I simply want to ignore everything in the "target" directory tree. This seems to be a hard thing to do.
Re: How to make SVN ignore everything in the "target" directory? [message #522591 is a reply to message #522492] Tue, 23 March 2010 09:30 Go to previous messageGo to next message
Mauro Molinari is currently offline Mauro MolinariFriend
Messages: 285
Registered: July 2009
Senior Member
Il 22/03/2010 20.07, David M. Karr ha scritto:
> That doesn't help, as "add to svn:ignore..." is insensitive when I
> right-click on "target". I get the same with the subdirectory of
> "target", which is "test-classes". The subdirectory of that, named
> "config" is the first entry in the tree which has a "?" on it in the
> Package Explorer, indicating it's not an element yet. When I right-click
> that, I do get the option to add that to "svn:ignore", but this bothers
> me. Does that mean that any element in the entire project which has a
> file name with "config" in it will be ignored? That's not what I need.
> This ability to ignore certain elements needs the ability to specify the
> "context" of the element, being what directory the element is in. I
> simply want to ignore everything in the "target" directory tree. This
> seems to be a hard thing to do.

Well, I haven't worked with SVN instensively, but I can tell you my
experience with CVS.
When you "ignore" a resource, using the default settings only *that*
resource is ignored, that is just the selected "config" subdirectory you
right-clicked on will be ignored, not all files named "config".

The fact that on your "target" directory there is not the "ignore"
option may mean that "target" is already in the repository. So, you
first have to remove it from the repository, then, when it is marked
with "?" (which means: not yet in the repository), you can specify to
ignore it, so that Eclipse won't show it as an outgoing change every
time you do a synchronize operation and won't let you commit it to the
repository.

HTH.
Mauro.
Re: How to make SVN ignore everything in the "target" directory? [message #522815 is a reply to message #522591] Wed, 24 March 2010 00:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Expecting SVN to be like CVS is very intuitive and very misleading. It
isn't at all.

Greyed out svn:ignore is one of the many SVN nightmares. Probably caused
by attempting to ignore something that already exists. You probably need
to use TortoiseSVN which at least shows where you are and
maybe helps you a little bit. Expect to have a very learning experience.

Regards

Ed Willink

On 23/03/2010 09:30, Mauro Molinari wrote:
> Il 22/03/2010 20.07, David M. Karr ha scritto:
>> That doesn't help, as "add to svn:ignore..." is insensitive when I
>> right-click on "target". I get the same with the subdirectory of
>> "target", which is "test-classes". The subdirectory of that, named
>> "config" is the first entry in the tree which has a "?" on it in the
>> Package Explorer, indicating it's not an element yet. When I right-click
>> that, I do get the option to add that to "svn:ignore", but this bothers
>> me. Does that mean that any element in the entire project which has a
>> file name with "config" in it will be ignored? That's not what I need.
>> This ability to ignore certain elements needs the ability to specify the
>> "context" of the element, being what directory the element is in. I
>> simply want to ignore everything in the "target" directory tree. This
>> seems to be a hard thing to do.
>
> Well, I haven't worked with SVN instensively, but I can tell you my
> experience with CVS.
> When you "ignore" a resource, using the default settings only *that*
> resource is ignored, that is just the selected "config" subdirectory you
> right-clicked on will be ignored, not all files named "config".
>
> The fact that on your "target" directory there is not the "ignore"
> option may mean that "target" is already in the repository. So, you
> first have to remove it from the repository, then, when it is marked
> with "?" (which means: not yet in the repository), you can specify to
> ignore it, so that Eclipse won't show it as an outgoing change every
> time you do a synchronize operation and won't let you commit it to the
> repository.
>
> HTH.
> Mauro.
Re: How to make SVN ignore everything in the "target" directory? [message #522816 is a reply to message #521997] Wed, 24 March 2010 00:45 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
In any case, I think I've resolved this problem. It was my mistake to check in the "target" directory in the first place. Once I did a svn remove on that and checked it in, it appears to have resolved this problem.
Previous Topic:Subversion syntax for tag reference in Hudson Athena Map file
Next Topic:empty list of connectors
Goto Forum:
  


Current Time: Tue Apr 23 06:29:58 GMT 2024

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

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

Back to the top