[armedbear-cvs] r13266 - in trunk/abcl/examples/google-app-engine: . war/WEB-INF
Mark Evenson
mevenson at common-lisp.net
Mon Apr 11 05:51:37 UTC 2011
Author: mevenson
Date: Mon Apr 11 01:51:36 2011
New Revision: 13266
Log:
Add an 'update' task to upload application to GAE.
Modified:
trunk/abcl/examples/google-app-engine/README
trunk/abcl/examples/google-app-engine/build.xml
trunk/abcl/examples/google-app-engine/war/WEB-INF/appengine-web.xml
Modified: trunk/abcl/examples/google-app-engine/README
==============================================================================
--- trunk/abcl/examples/google-app-engine/README (original)
+++ trunk/abcl/examples/google-app-engine/README Mon Apr 11 01:51:36 2011
@@ -30,6 +30,29 @@
3. Visit `http://localhost:8080/hello' in a web browser to see the example run.
+Deploying to GAE
+----------------
+
+1. To deploy the included example to GAE, you need to first obtain a
+ GAE account, and pick a GAE application id to use with the
+ application.
+
+2. Then you need to edit 'war/WEB-INF/appengine-web.xml' to specify
+ this application. Just replace the contents of the <applciation>
+ tag (initially 'GAE-APPLICATION-ID-GOES-HERE') in the file with
+ your GAE ID.
+
+3. Then the Ant task 'update' should upload your application to GAE:
+
+ unix$ ant update
+
+ You will be prompted for the Google Account credentials associated
+ with the application ID.
+
+
+
+
+
Modified: trunk/abcl/examples/google-app-engine/build.xml
==============================================================================
--- trunk/abcl/examples/google-app-engine/build.xml (original)
+++ trunk/abcl/examples/google-app-engine/build.xml Mon Apr 11 01:51:36 2011
@@ -26,9 +26,11 @@
<copy
todir="war/WEB-INF/lib"
flatten="true">
+ <!--
<fileset dir="${sdk.dir}/lib/user">
<include name="**/*.jar" />
</fileset>
+ -->
<fileset dir="${abcl.dir}">
<include name="dist/*.jar" />
</fileset>
@@ -90,8 +92,14 @@
<dev_appserver war="war" />
</target>
- <target name="runserver-debug" depends="compile,resources.copy"
+ <target name="runserver-debug" depends="compile"
description="Starts the development server.">
<dev_appserver war="war" port="8888"/>
</target>
+
+ <target name="update" depends="compile"
+ description="Uploads the application to App Engine.">
+ <appcfg action="update" war="war" />
+ </target>
+
</project>
\ No newline at end of file
Modified: trunk/abcl/examples/google-app-engine/war/WEB-INF/appengine-web.xml
==============================================================================
--- trunk/abcl/examples/google-app-engine/war/WEB-INF/appengine-web.xml (original)
+++ trunk/abcl/examples/google-app-engine/war/WEB-INF/appengine-web.xml Mon Apr 11 01:51:36 2011
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
- <application>abcl-test</application>
- <version>1</version>
+ <application>GAE-APPLICATION-ID-GOES-HERE</application>
+ <version>1</version>
</appengine-web-app>
More information about the armedbear-cvs
mailing list