I’m using Mac 10.9.5 with SVN on the command line. From within my src/main/webapp/WEB-INF directory, I execute
svn propedit svn:ignore .
in which the file has two lines …
classes
lib
However, when I run “svn status”, it reports “?” for all the JAR files in my lib folder, for example below are some of the files it reports …
? lib/xercesImpl-2.8.0.jar
? lib/xml-apis-1.0.b2.jar
? lib/xml-apis-ext-1.3.04.jar
? lib/xom-1.2.5.jar
I know none of these files is under version control because when I run “svn del” on the lib directory, I get this …
Daves-MacBook-Pro:WEB-INF davea$ svn del lib
svn: E200005: Use --force to override this restriction (local modifications may be lost)
svn: E200005: '/Users/davea/Dropbox/workspace/sbadmin/src/main/webapp/WEB-INF/lib/antisamy-1.5.3.jar' is not under version control
Does anyone know how to get SVN to ignore files in my lib directory, or barring that, have it ignore my entire lib directory?
You've got the right idea. Make sure there are no spaces in front of "lib" in the ignore list. Also, after saving the edit, you can do an svn up .
to pull the latest and force it to refresh the status list.
If you're trying to ignore classes/lib then do an svn propedit svn:ignore classes
and set it to "lib".