Monday, March 28, 2011

SVN Tips – Ignore file or directory in Subversion (eclipse)

Windows_Live_Sync_logo

Usually when we deal with the subversion we want to ignore specific files or directories from committing. These files may depend on local paths.

Common files are ignored:

.class files and SVN related files .

Maven as example

maven usually have the following project structure:

image

Committing the target folder will always generate conflicts when committing, so we should ignore this folder in SVN here’s how:

From eclipse window menu –> Preferences, then from the right menu Team –> Ignored Resources as shown below:

image

then choose add Pattern and enter “target”

Conclusion

Working with SVN could raise some issues with having some files created only for local testing, so ignoring these files will handle this issue.

No comments:

Post a Comment