Google Ignore Version Ignore Checklist

Is there a standard file / directory / patten list that can be added to the version control ignore list (e.g. .ggignore) when the version controls the source of the Java application for Google applications?

I think a bunch of people must have already worked on this, are there any good examples there?

+6
java version-control google-app-engine
source share
4 answers

Well, with the absence of any obvious answers, I made my own. Here, with .hgignore, I replaced [app-name-here] with the name of the application:

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

repo is publicly available if anyone is interested.

+1
source share

The standard list may not be there, 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 

In principle, you should ignore at least any directory with generated content.


The same principles apply to Java application projects such as this or this :

 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 saved any Eclipse or maven-related file under source control to facilitate the build step when someone clones the repo.

+4
source share

This should ignore all generated files (used in .gitignore)

 gwt-unitCache/ war/<<app-name>>/ war/WEB-INF/classes/ war/WEB-INF/deploy/ 
+2
source share

I am using maven-gae-plugin and developing in eclipse. I often copy this .hgignore in new projects:

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

In addition, you need to consider something else: when you deploy the appengine application, the appengine sdk runtime sends a relation of files that will be published along with their checksums and only updated files are downloaded.

0
source share

All Articles