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" />
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.">
18 <mkdir dir="war/WEB-INF/lib" />
20 todir="war/WEB-INF/lib"
22 <fileset dir="${appengine.sdk}/lib/user">
23 <include name="**/*.jar" />
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">
33 <exclude name="**/*.java" />
38 destdir="war/WEB-INF/classes"
39 classpathref="project.classpath"
43 <target name="datanucleusenhance" depends="compile"
44 description="Performs JDO enhancement on compiled data classes.">
45 <enhance_war war="war" />
48 <target name="runserver" depends="datanucleusenhance"
49 description="Starts the development server.">
50 <dev_appserver war="war" />
53 <target name="update" depends="datanucleusenhance"
54 description="Uploads the application to App Engine.">
55 <appcfg action="update" war="war" />
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" />
63 <target name="rollback" depends="datanucleusenhance"
64 description="Rolls back an interrupted application update.">
65 <appcfg action="rollback" war="war" />
68 <target name="request_logs"
69 description="Downloads log data from App Engine for the application.">
70 <appcfg action="request_logs" war="war">
72 <arg value="--num_days=5"/>
75 <arg value="logs.txt"/>