Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add package to svn ignore in eclipse

I am using subversive in eclipse to work with svn repo. I was wondering how it's possible to add a package to svn ignore? This is because I have consumed a webservices package (not yet added to SVN) and I want to exclude it from being committed to svn.

I tried right click > Team > Add to svn ignore, but the option was disabled.

UPDATE: the package name i want to ignore is remote.webservice which is a directory called remote and inside it a directory called webservice.

like image 397
Mahmoud Saleh Avatar asked Dec 08 '11 09:12

Mahmoud Saleh


People also ask

How do I ignore a class file in svn?

Another way to ignore files is to add them to the global ignore list. The big difference here is that the global ignore list is a client property. It applies to all Subversion projects, but on the client PC only.

How do I ignore bin and obj folder in svn?

The text box “Global ignore pattern” defines what patterns you want to exclude; in my case I wanted to remove bin and obj folders, and ReSharper related files, which typically contain _ReSharper, so I added bin obj _ReSharper to the list of patterns. Et voila!

How do I ignore target folder in svn?

To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .


2 Answers

As a workaround you can ignore a folder by using the "Set property" function on the package one level higher.

Add the following property:

  • Property: svn:ignore
  • Value: last element of the package to be ignored
like image 194
Robert Avatar answered Oct 06 '22 04:10

Robert


Try Windows->Preferences->Team->Ignored resources

like image 39
korifey Avatar answered Oct 06 '22 03:10

korifey