问题
I'm working on a GWT project in Eclipse with Mercurial for revision control.
Which files should I store under version control? Or, perhaps more succinctly, which files should I not store since they are either part of GWT or are artifacts of the build process?
I'm using Eclipse Helios and GWT 2.0.4. This question would apply to any version control system: Mercurial, Subversion (SVN), CVS, etc.
回答1:
If your project is located outside your workspace, I would store everything but:
- the
bin
orcls
(that is the directory where.class
files are generated). - any directory/file with generated content
Make sure you take advantage of relative paths in your .project/.classpath (since Eclipse 3.5.2)
来源:https://stackoverflow.com/questions/3182809/eclipse-which-files-to-store-in-version-control-for-gwt-project