cd ${mypp}\${mypp-ear}
mvn -f ..\pom.xml clean install && mvn appengine:update
mvn -f ..\pom.xml clean install && mvn appengine:devserver
GAE maven:
https://developers.google.com/appengine/docs/java/tools/maven
mvn archetype:generate
Type: com.google.appengine.archetypes:skeleton-archetype
Select: appengine-skeleton-archetype
*URL with multiple parameters in cron.xml*
https://code.google.com/p/googleappengine/issues/detail?id=6328
XML treats & < > ' and " as special characters in XML text and attributes, except within CDATA sections.
Option 1.
Replace your & with & or &
Option 2.
Prefix your URL with <![CDATA[ and suffix it with ]]>
http://en.wikipedia.org/wiki/CDATA
<url><![CDATA[/cron/?action=Update&n=yes]]></url>
GAE cron
every N (hours|mins|minutes) ["from" (time) "to" (time)]
<timezone>America/New_York</timezone>
<timezone>Asia/Shanghai</timezone>
every 5 minutes from 10:00 to 14:00
every N (hours|mins|minutes) ["from" (time) "to" (time)]
Validate your task schedule and get a human-readable description:
appcfg cron_info war.path
appcfg.py cron_info app-dir (Python)
GAE robots
http://stackoverflow.com/questions/13472174/robots-txt-in-appengine-java
<static-files>
<include path="/favicon.ico" />
<include path="/robots.txt" />
<include path="/img/**.png" />
<include path="/img/**.gif" />
<include path="/css/**.css" />
</static-files>
User-agent: *
Disallow: /
mvn -f ..\pom.xml clean install && mvn appengine:update
mvn -f ..\pom.xml clean install && mvn appengine:devserver
appcfg rollback .
https://developers.google.com/appengine/docs/java/tools/maven
mvn archetype:generate
Type: com.google.appengine.archetypes:skeleton-archetype
Select: appengine-skeleton-archetype
*URL with multiple parameters in cron.xml*
https://code.google.com/p/googleappengine/issues/detail?id=6328
XML treats & < > ' and " as special characters in XML text and attributes, except within CDATA sections.
Option 1.
Replace your & with & or &
Option 2.
Prefix your URL with <![CDATA[ and suffix it with ]]>
http://en.wikipedia.org/wiki/CDATA
<url><![CDATA[/cron/?action=Update&n=yes]]></url>
GAE cron
every N (hours|mins|minutes) ["from" (time) "to" (time)]
<timezone>America/New_York</timezone>
<timezone>Asia/Shanghai</timezone>
every 5 minutes from 10:00 to 14:00
every N (hours|mins|minutes) ["from" (time) "to" (time)]
Validate your task schedule and get a human-readable description:
appcfg cron_info war.path
appcfg.py cron_info app-dir (Python)
GAE robots
http://stackoverflow.com/questions/13472174/robots-txt-in-appengine-java
<static-files>
<include path="/favicon.ico" />
<include path="/robots.txt" />
<include path="/img/**.png" />
<include path="/img/**.gif" />
<include path="/css/**.css" />
</static-files>
User-agent: *
Disallow: /
No comments:
Post a Comment