Alex Rivera | Logout

In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder?

Asked 2008-10-22T11:34:16.313
29

I'm developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the output directory I then run my application and all works well.

However, I keep having these warnings:

Snapshot from Problems tab in Eclipse http://www.freeimagehosting.net/uploads/128c1af93f.png

Anyone know how to get rid of these warnings? Maybe by excluding some files, maybe based on the .svn extension or filename, from the build process? If so, how would I go about excluding those?

Edit
Report

2 Answers

33

Have you tried to add

**/.svn/

to the Exclusion patterns at the Source preferences of the project's build path settings?

answered 2008-10-22T11:44:21.317
1

That sounds like your building process is using versionned directory within your subversion workspace.

Should you not have your 'output' folder and/or your 'tst' folder be made 'private' ? (that is without any .svn, and ignored by subversion)

answered 2008-10-22T11:43:36.403

Your Answer