1 <project name="Guestbook Highrep" default="compile">
2 <property name="appengine.sdk" location="../.." />
4 <import file="${appengine.sdk}/config/user/ant-macros.xml" />
6 <path id="project.classpath">
7 <pathelement path="war/WEB-INF/classes" />
8 <fileset dir="war/WEB-INF/lib">
9 <include name="**/*.jar" />
11 <fileset dir="${appengine.sdk}/lib">
12 <include name="shared/**/*.jar" />
16 <target name="copyjars"
17 description="Copies the App Engine JARs to the WAR.">
19 todir="war/WEB-INF/lib"
21 <fileset dir="${appengine.sdk}/lib/user">
22 <include name="**/*.jar" />
27 <target name="compile" depends="copyjars"
28 description="Compiles Java source and copies other source files to the WAR.">
29 <mkdir dir="war/WEB-INF/classes" />
30 <copy todir="war/WEB-INF/classes">
32 <exclude name="**/*.java" />
37 destdir="war/WEB-INF/classes"
38 classpathref="project.classpath"
44 <target name="runserver" depends="compile"
45 description="Starts the development server.">
46 <dev_appserver war="war" />
49 <target name="update" depends="compile"
50 description="Uploads the application to App Engine.">
51 <appcfg action="update" war="war" />
54 <target name="update_indexes" depends="compile"
55 description="Uploads just the datastore index configuration to App Engine.">
56 <appcfg action="update_indexes" war="war" />
59 <target name="rollback" depends="compile"
60 description="Rolls back an interrupted application update.">
61 <appcfg action="rollback" war="war" />
64 <target name="request_logs"
65 description="Downloads log data from App Engine for the application.">
66 <appcfg action="request_logs" war="war">
68 <arg value="--num_days=5"/>
71 <arg value="logs.txt"/>