Revision created by MOE tool push_codebase.
[gae.git] / java / demos / guestbook / build.xml
blobf5f697c2c7151bf1404c3a35d7493cbb2bd172f1
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" />
10     </fileset>
11     <fileset dir="${appengine.sdk}/lib">
12       <include name="shared/**/*.jar" />
13     </fileset>
14   </path>
16   <target name="copyjars"
17       description="Copies the App Engine JARs to the WAR.">
18     <copy
19         todir="war/WEB-INF/lib"
20         flatten="true">
21       <fileset dir="${appengine.sdk}/lib/user">
22         <include name="**/*.jar" />
23       </fileset>
24     </copy>
25   </target>
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">
31       <fileset dir="src">
32         <exclude name="**/*.java" />
33       </fileset>
34     </copy>
35     <javac
36         srcdir="src"
37         destdir="war/WEB-INF/classes"
38         classpathref="project.classpath"
39         debug="on" />
40   </target>
42   <target name="runserver" depends="compile"
43       description="Starts the development server.">
44     <dev_appserver war="war" />
45   </target>
47   <target name="update" depends="compile"
48       description="Uploads the application to App Engine.">
49     <appcfg action="update" war="war" />
50   </target>
52   <target name="update_indexes" depends="compile"
53       description="Uploads just the datastore index configuration to App Engine.">
54     <appcfg action="update_indexes" war="war" />
55   </target>
57   <target name="rollback" depends="compile"
58       description="Rolls back an interrupted application update.">
59     <appcfg action="rollback" war="war" />
60   </target>
62   <target name="request_logs"
63       description="Downloads log data from App Engine for the application.">
64     <appcfg action="request_logs" war="war">
65       <options>
66         <arg value="--num_days=5"/>
67       </options>
68       <args>
69         <arg value="logs.txt"/>
70       </args>
71     </appcfg>
72   </target>
74 </project>