Is there a standard list of files/directories/pattens that can be added to a version control ignore list (eg .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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.