Eclipse & SVN on Linux : How to add files to ignore list automatically

Eclipse (software)

Eclipse (software) (Photo credit: Wikipedia)

First of all you need to create a new file on the root of the project with the list of file to ignore like the following (this is a typical list of file that we need to exclude from an Eclipse project)

target
target/**
bin
bin/**
.classpath
.project
.settings

and after on the console (shell) you have to run the following command assuming that you have called the previous file ignore.txt

svn propset svn:ignore -RF ignore.txt .

(Please note the “.” at the end of the command). The -R is the recursive option

Now you can run eclipse and access to the SVN View and commit all the local changes

This is very usefull if you have alread a large project that you want to import on Eclipse and do you want to avoid to ignore every file manually by means of eclipse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: