谷歌应用程序引擎Java应用程序的版本控制忽略列表

发布于 2024-09-08 01:30:02 字数 120 浏览 2 评论 0原文

当版本控制 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

中性美 2024-09-15 01:30:02

标准列表,也许不是,但您有一些< /a> 示例

syntax: regexp

\.*py[co]
\.DS_Store
~$
\.coverage
\.egg-info

syntax: glob

nbproject
app.yaml
auth.py
dist
target
WEB-INF/appengine-generated

基本上,至少任何包含生成内容的目录都应该被忽略。


同样的原则也适用于 Java 应用项目,例如 这个那个

syntax: glob

*~
*.patch
*.sedbak
*/target/*
*/<project_name>searchindex/*
*/test-output/*

hs_err_pid*.log
tomcat

syntax: regexp
\.jar$

^\.pc/
^.ant-targets-build.xml
\.pages.xml.spdia$
temp-testng-customsuite.xml$

# eclipse and maven stuff
^target

# kde related
\.directory$

#gwt related
^<project_name>-war/war/WEB-INF/classes/
^<project_name>-war/tomcat
\.gwt-tmp$
^<project_name>-war/org.fedorahosted.<project_name>.webtrans.Application
^<project_name>-war/war/org.fedorahosted.<project_name>.webtrans.Application

当然,我将 将任何 Eclipse 或 Maven 相关文件保存在源代码控制,以便在任何人克隆存储库时促进构建步骤。

Standard list, maybe not, but you have some examples:

syntax: regexp

\.*py[co]
\.DS_Store
~$
\.coverage
\.egg-info

syntax: glob

nbproject
app.yaml
auth.py
dist
target
WEB-INF/appengine-generated

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:

syntax: glob

*~
*.patch
*.sedbak
*/target/*
*/<project_name>searchindex/*
*/test-output/*

hs_err_pid*.log
tomcat

syntax: regexp
\.jar$

^\.pc/
^.ant-targets-build.xml
\.pages.xml.spdia$
temp-testng-customsuite.xml$

# eclipse and maven stuff
^target

# kde related
\.directory$

#gwt related
^<project_name>-war/war/WEB-INF/classes/
^<project_name>-war/tomcat
\.gwt-tmp$
^<project_name>-war/org.fedorahosted.<project_name>.webtrans.Application
^<project_name>-war/war/org.fedorahosted.<project_name>.webtrans.Application

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.

九局 2024-09-15 01:30:02

这应该忽略所有生成的文件(在 .gitignore 中使用)

gwt-unitCache/
war/<<app-name>>/
war/WEB-INF/classes/
war/WEB-INF/deploy/

This should ignore all of the generated files (Used in a .gitignore)

gwt-unitCache/
war/<<app-name>>/
war/WEB-INF/classes/
war/WEB-INF/deploy/
北渚 2024-09-15 01:30:02

好吧,由于缺乏任何明显的答案,我自己编了一个答案。这是我使用的 .hgignore,将 [app-name-here] 替换为应用程序的名称:

syntax: glob
*.class
war/[app-name-here]
war/WEB-INF/classes

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:

syntax: glob
*.class
war/[app-name-here]
war/WEB-INF/classes

The repo is public if anyone is interested.

心的憧憬 2024-09-15 01:30:02

我使用 maven-gae-plugin 并在 eclipse 中进行开发。我经常在新项目中复制这个 .hgignore:

\.project
\.classpath
\.settings/
^target$

除此之外,您还需要考虑其他事项:当您部署 appengine 应用程序时,appengine sdk 运行时会发送要发布的文件的关系及其校验和,并且仅上传更新的文件。

I use the maven-gae-plugin and develop within eclipse. This .hgignore I often copy in new projects:

\.project
\.classpath
\.settings/
^target$

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文