Thursday, September 11, 2008

Recursively ignore "target" directory in svn

Suppose you are working with maven and svn tries to add target, what you can do to recursively ignore the target directory is:

svn propset -R svn:ignore target .

or you can do the following:

===================

$> svn ps svn:ignore 'target
target-eclipse
.settings
eclipse-target' .

===================

Remember that each ignorable entity should be on one line.

======================
anil@localhost:~/identity/identity-doc/trunk$ svn -R propset svn:ignore '.classpath
> .project
> .metadata
> target
> target-eclipse' .
property 'svn:ignore' set (recursively) on '.'

No comments: