Team-> Commit in Eclipse shows resources from a symbolic directory. How to ignore?

When I want to transfer my project to svn, Eclipse displays a list of files in our tmp directory. Eclipse offers the ability to add all these files to svn. But I do not want this, I want Eclipse to ignore the entire directory.

about the project

Our project contains a symbolic link "tmp", where all our cache files are written to:

lrwxrwxrwx 1 tijmen tijmen Oct. 11 14 11:28 tmp → ../tmp

The symbolic link tmp has already been added to svn: ignore. The ../tmp directory is not in version control.

The ../tmp directory contains many cache files (837 at the moment). Each time I command Team-> Commit, it lists all the cache files as “Create” in the “Content” column. Since the list is so long, it is very difficult to find the files that I really want to add and / or commit.

Is there a parameter in Eclipse that allows me to ignore the contents of a directory (symlinked) in the Team-> Commit view?

+4
source share
2 answers

I have found a solution.

The right mouse in the project → Properties → Resource → Resource Filters. Here I created an exclusion filter to exclude symbolic links. Fortunately, I have only one symbolic link in this project. For other projects, a more strict filter can be created.

+5
source

Add the selected tmp symbolic link to the svn: ignore property of your container folder. If it was not added to the repository at all, just right-click on the folder and select the command / Add to SVN ignore (or something really similar name).

Otherwise, you can manually delete the existing folder and add the corresponding property to your container folder.

EDIT:. I am using the Subversion Eclipse plug-in; if you are using the Subclipse plug-in, search for an option that sets svn: ignore properties.

0
source

Source: https://habr.com/ru/post/1390477/


All Articles