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)


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