What is the recommended source control ignore pattern for Seam projects?
After generating a project开发者_StackOverflow中文版 using seam-gen
, what is the recommended ignore pattern for source control? What should the recommended .gitignore
file (or svn:ignore
, or equivalents) look like?
We develop our Seam projects under Eclipse. Our current svn:ignore
has the following entries:
classes # all class files
dist # contains generated war files for deployment
.settings # some Eclipse settings
exploded-archives # war content generation during deploy (or explode)
test-output # test results
test-build # test compilation (ant target for Seam)
test-report # test report generation for, e.g., Hudson
temp-testng-customsuite.xml # generated when running test cases under Eclipse
In addition, in our bootstrap
folder we ignore data
and tmp
.
I have no direct experience with seam, but if you start a project with seam-gen, then you need to:
- exclude in your
.gitignore
file whatever will contain generated content (like thetarget
directory, also*.sw
files ortest-output
directories) - don't exclude IDE-related files (if they don't include absolute path), in order for others to get directly a project they can import in said IDE,
- contribute back the content of the gitignore file in the GitHub
gitignore
project: they need a seam/seam-gen entry.
Based on the entries above, I've merged the suggestions into an entry on the gitignore project: https://github.com/github/gitignore/blob/master/SeamGen.gitignore
精彩评论