Do you have a good ignore pattern for svn, git, etc. that handles an eclipse workspace? I want to version handle all projects in the workspace. It has to ignore all the eclipse configuration, compiled files, and output folders.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to ignore just the top level workspace directory. What are you trying to accomplish?
Basically, in the directory above your workspace, do this:
Since what you want is to ignore more specific resources within the project, you want something like this (you can set it using svn prop_edit_ svn:ignore
<project_dir>):In standard Eclipse JDT projects (with separate source and build trees) that will exclude the things that it outputs. Of course, this will differ slightly for things like CDT projects, ruby, &c. YMMV, etcetera.
My general practice is to manually version everything I need versioned, and then exclude whatever is left. Wildcards are dangerous for ignores; they can easily keep you from noticing something critical, so err on the side of caution and ignore only the bare minimum.