开发者

Version control ignore list for google app engine Java apps

开发者 https://www.devze.com 2023-01-06 08:49 出处:网络
Is there a standard list of files/directories/pattens that can be added to a version control ignore list (e.g. .hgignore) when ver开发者_如何转开发sion controlling the source of a Google app engine Ja

Is there a standard list of files/directories/pattens that can be added to a version control ignore list (e.g. .hgignore) when ver开发者_如何转开发sion 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?


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.


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/


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号