Grails applications and version control

喜夏-厌秋 提交于 2019-12-21 12:08:57

问题


Which directories/files should be excluded when placing a Grails application under version control? I don't want non-source files or artifacts to be carried in SVN for my project.


回答1:


here's my .gitignore (it probably contains alot of junk)

.idea/
stacktrace.log
test/reports/
etc/errors.txt
bin-groovy/
.classpath
.project
*.war
web-app/plugins/
web-app/resources/
classes/
test/reports/

Note that this is for grails 1.1.1. (I think before grails 1.1, plugins were stored in /plugins instead of web-app/plugins.




回答2:


Grails.org has specific instructions on checking your project into SVN.




回答3:


You should exclude the "test/reports" directory in your root folder. It's also useful to exclude "stacktrace.log".

If you are using JS-Libraries you could think of excluding them too and write a little script for always getting the latest bugfix version. Modern JS-Libraries can be very large and it's not very useful to clutter your VCS with old versions of your frameworks. An exception is a jump to a new major version of a library or a tag. In this case you should definitely keep an old version.



来源:https://stackoverflow.com/questions/956445/grails-applications-and-version-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!