App Engine Python SDK version 1.8.4
[gae.git] / java / demos / jdoexamples / build.xml
blob02f26c8d044209fe3821988f83d95273887bb974
1 <project name="JDO Examples" default="datanucleusenhance">
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     <mkdir dir="war/WEB-INF/lib" />
19     <copy
20         todir="war/WEB-INF/lib"
21         flatten="true">
22       <fileset dir="${appengine.sdk}/lib/user">
23         <include name="**/*.jar" />
24       </fileset>
25     </copy>
26   </target>
28   <target name="compile" depends="copyjars"
29       description="Compiles Java source and copies other source files to the WAR.">
30     <mkdir dir="war/WEB-INF/classes" />
31     <copy todir="war/WEB-INF/classes">
32       <fileset dir="src">
33         <exclude name="**/*.java" />
34       </fileset>
35     </copy>
36     <javac
37         srcdir="src"
38         destdir="war/WEB-INF/classes"
39         classpathref="project.classpath"
40         debug="on" />
41   </target>
43   <target name="datanucleusenhance" depends="compile"
44       description="Performs JDO enhancement on compiled data classes.">
45     <enhance_war war="war" />
46   </target>
48   <target name="runserver" depends="datanucleusenhance"
49       description="Starts the development server.">
50     <dev_appserver war="war" />
51   </target>
53   <target name="update" depends="datanucleusenhance"
54       description="Uploads the application to App Engine.">
55     <appcfg action="update" war="war" />
56   </target>
58   <target name="update_indexes" depends="datanucleusenhance"
59       description="Uploads just the datastore index configuration to App Engine.">
60     <appcfg action="update_indexes" war="war" />
61   </target>
63   <target name="rollback" depends="datanucleusenhance"
64       description="Rolls back an interrupted application update.">
65     <appcfg action="rollback" war="war" />
66   </target>
68   <target name="request_logs"
69       description="Downloads log data from App Engine for the application.">
70     <appcfg action="request_logs" war="war">
71       <options>
72         <arg value="--num_days=5"/>
73       </options>
74       <args>
75         <arg value="logs.txt"/>
76       </args>
77     </appcfg>
78   </target>
80 </project>