谷歌应用程序引擎Java应用程序的版本控制忽略列表
当版本控制 Google 应用程序引擎 Java 应用程序的源时,是否有可以添加到版本控制忽略列表(例如 .hgignore)的文件/目录/模式的标准列表?
我想很多人肯定已经解决了这个问题,有什么好的例子吗?
Is there a standard list of files/directories/pattens that can be added to a version control ignore list (e.g. .hgignore) when version controlling the source of a Google app engine Java app?
I guess a bunch of people must have worked this out already, any good examples out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
标准列表,也许不是,但您有一些< /a> 示例:
基本上,至少任何包含生成内容的目录都应该被忽略。
同样的原则也适用于 Java 应用项目,例如 这个或那个:
当然,我将 将任何 Eclipse 或 Maven 相关文件保存在源代码控制,以便在任何人克隆存储库时促进构建步骤。
Standard list, maybe not, but you have some examples:
Basically, at least any directory with generated content should be ignored.
The same principles holds true for Java app projects like this one or that one:
Off course, I will keep any Eclipse or maven related file under source control, in order to facilitate the build step when anyone will clone the repo.
这应该忽略所有生成的文件(在 .gitignore 中使用)
This should ignore all of the generated files (Used in a .gitignore)
好吧,由于缺乏任何明显的答案,我自己编了一个答案。这是我使用的 .hgignore,将 [app-name-here] 替换为应用程序的名称:
repo 是公开的。
Well, with a lack of any obvious answers, I made my own up. Here's the .hgignore I went with, replacing [app-name-here] with the name of the app:
The repo is public if anyone is interested.
我使用 maven-gae-plugin 并在 eclipse 中进行开发。我经常在新项目中复制这个 .hgignore:
除此之外,您还需要考虑其他事项:当您部署 appengine 应用程序时,appengine sdk 运行时会发送要发布的文件的关系及其校验和,并且仅上传更新的文件。
I use the maven-gae-plugin and develop within eclipse. This .hgignore I often copy in new projects:
Besides that, you need to consider something else: When you deploy an appengine application, the appengine sdk runtime sends a relation of files to be published along with their checksums, and only updated files are uploaded.