you can't svn:ignore a file that is already commited to repository.
so you must:
- delete the file from the repository.
- update your project (the working copy) to the head revision.
- recreate the file in eclipse.
- set svn:ignore on the file via team->add to svn:ignore.
- restart eclipse to reflect changes.
this is quite frustrating, but it's a containment issue (the .svn folders keep track also of ignored files). any item that needs to be ignored is to be added to the ignore list of the immediate parent folder.
so, i had a new sub-folder with a new file in it and wanted to ignore that file but i couldn't do it because the option was grayed out. i solved it by committing the new folder first, which i wanted to (it was a cache folder), and then adding that file to the ignore list (of the newly added folder ;-), having the chance to add a pattern instead of a single file.
one more thing... if you already ignored those files through eclipse (with team -> ignored resources) you have to undo these settings so the files are controlled by subclipse again and "add to svn:ignore" option reappears
in case you're using tortoisesvn and the file is already commited, go to your files project folder, right click on the file/folder you want to ignore, tortoisesvn -> unversion and add to ignore list. then you delete the folder/file (click on it and then push delete on your keyboard), right click on your project folder, -> svn commit... this will delete the folder from the repository.... now you can create your folder/file again and then it will be ignored.
to ignore certain files or turn off ignoring you can use the eclipse preferences-->team -->ignored resource. check or uncheck the resources you want to be tracked.
i just figured out how to do this:
it appears that when you add a parent folder to version control, eclipse adds all sub-folders. once the sub-folders are added to version control, it is not possible to ignore them.
here's how to do it:
right click on the top level folder and add to version control right click on the child folder you want to ignore, revert right click on the child folder you want to ignore, svn:ignore (which will now be available)
this is just a wag as i am not a subclipse user, but have you ensured that the folders containing what you're trying to ignore have themselves been added to svn? you can't svn:ignore something inside a folder that's not under version control.
what worked for me was following : (eclipse 3.3.6 subclipse 2.4)
- set svn:ignore property via tortoise : ( .settings .classpath .project target .apt_src one item at one line)
- deleted the project from the eclipse
- fresh checkout from the svn
- import the project in eclipse (simple reimporting the project in eclipse did not worked for me)
working with subclipse on eclipse indigo service release 2
i had commited folders with temporary files and logs lying under /src to the svn repository. and after realizing it, i found myself in the same situation with a grayed out "svn:ignore"
i found following solution:
1. i deleted the folder from my project source
2. team -> commit... withouth the folder
3. recreated the folder back into the project tree
now i was able to use "team -> add to svn:ignore..."
if you are trying to share a project in svn with eclipse for the first time, you might want to avoid certain files to be commited. in order to do so, go to preferences->team->ignored resources. in this screen you just need to add a pattern to ignore the kind of files you don't want to commit.
it seems subclipse only allows you to add a top-level folder to ignore list and not any sub folders under it. not sure why it works this way. however, i found out by trial and error that if you directly add a sub-folder to version control, then it will allow you to add another folder at the same level to the ignore list.
for example, refer fig above, when i wanted to ignore the webapp folder without adding src, subclipse was not allowing me to do so. but when i added the java folder to version control, the "add to svn:ignore..." was enabled for webapp.
i was able to do this using tortoisesvn directly from windows explorer:
right click on file to ignore->
delete and add to ignore list
i had to close then re-open the project in eclipse, job done :)
- What are the pros and cons of the SVN plugins for Eclipse, Subclipse and Subversive?
- Subclipse svn:ignore
- Subclipse and JavaHL installation headache
- Getting Subclipse in Aptana to work with the newest release of Subversion
- Subclipse in Mac OS Lion shows "Unable to load default SVN client" error
- Removing an SVN location from Eclipse using Subclipse
- subclipse not showing "share project" option on project context menu in eclipse
- Subclipse conflict resolution
- Subclipse complains "Path is not a working copy" after moving workspace
- How to fully delete Subclipse plugin?
- Add to svn:ignore greyed out in subclipse
- Branching and merging in Subclipse
- Reconnect Eclipse Project to SVN with Subclipse
- Incompatible JavaHL library for Subclipse in 64 bit Kubuntu
- Subclipse with SVNKit Adapter
- Subclipse - marking code changes like in NetBeans
- Red arrow icon in subclipse
- Howto re-attach subclipse when using a new Eclipse on an existing workspace
- m2e Subclipse Connector error - 'bundle org.tigris.subversion.subclipse.core [1.6.0,1.9.0)
- Getting subclipse to work on Ubuntu 64 and Indigo - Incompatible JavaHL library loaded. 1.7.x or later required
- Key for Subclipse icons
- Subclipse can't rename file (OS X)
- Subclipse error -- Subversion Native Library not available
- Eclipse, Subclipse 1.8.2, SVN 1.7.0 asks password every action
- How do I completely uninstall Eclipse so I can sort out my Subclipse trouble?
- javahl subclipse 64 bit installation on windows
- How to Update to Revision using Subclipse SVN plugin?
- Subclipse and Tortoise SVN together
- Subclipse ignores "Accept Permanently" when "Accept Digital Certificate" dialog is shown
- Subclipse plugin doesn't work in Eclipse?
More Query from same tag
- How to change the APK icon?
- Running behave within Eclipse/PyDev
- How can I add a constraint in Cplex (java) about an argmax o min?
- What is the best way to replace a folder in svn using Eclipse subversive plug-in?
- PhoneGap 3.3 The import org.apache.cordova cannot be resolved
- opengl glut stopped working
- How to migrate from TortiseSVN to an Eclipse plugin to manage an established SVN project
- How to add specific configuration to a Maven plugin
- The reason behind choosing a particular version of Eclipse for Android development?
- Eclipse Color Themes - Groovy support? Explorer & Outline?
- How to use core Java classes in Papyrus UML (Eclipse)?
- Play Framework + Eclipse: undefined method for ReverseApplication
- Maven not in the allowed range
- How do I populate a ListFragment in Android?
- ads are not appearing in my app (using libgdx)
- How to force team members to comment using eclipse plugin or something else
- Eclipse IDE search definition error (Progress View)
- AutoCompleteTextView unselectable drop down items
- Subversive SVN Connector installation fails in Eclipse Oxygen
- maven and eclipse build conflict
- Python nltk read only
- Eclipse: "selection does not contain a main type" error when main function exists
- Deploying a Java application. How?
- Git in Eclipse: Files removed from local projects
- Adding Boost Library to a C++ project in Windows Eclipse
- Or operand with int in if statement
- Problems after Importing an android project from github into Eclipse
- Eclipse Syntax Coloring File
- TitleView bug I don't understand
- Eclipse Shortcut to Split Long Strings