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 11:12  |
Eclipse User |
|
|
|
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 #522591 is a reply to message #522492] |
Tue, 23 March 2010 05:30   |
Eclipse User |
|
|
|
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] |
Tue, 23 March 2010 20:20   |
Eclipse User |
|
|
|
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.
|
|
| |
Goto Forum:
Current Time: Tue Jul 01 18:37:26 EDT 2025
Powered by FUDForum. Page generated in 0.03673 seconds
|