Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 86 lines (74 sloc) 2.58 kb
bc08d5a first commit
Nam Nguyen authored
1 <project>
2 <property name="sdk.dir" location="../appengine-java-sdk" />
3
4 <import file="${sdk.dir}/config/user/ant-macros.xml" />
5
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="${sdk.dir}/lib">
12 <include name="shared/**/*.jar" />
13 </fileset>
14 </path>
15
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="${sdk.dir}/lib/user">
22 <include name="**/*.jar" />
23 </fileset>
24 </copy>
25 </target>
26
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>
41
42 <target name="datanucleusenhance" depends="compile"
43 description="Performs JDO enhancement on compiled data classes.">
44 <enhance_war war="war" />
45 </target>
46
47 <target name="runserver" depends="datanucleusenhance"
48 description="Starts the development server.">
a66ee38 add local mysql config to build.xml
Nam Nguyen authored
49 <dev_appserver war="war">
50 <options>
51 <arg value="--jvm_flag=-Drdbms.server=local"/>
52 <arg value="--jvm_flag=-Drdbms.driver=com.mysql.jdbc.Driver"/>
53 <arg value="--jvm_flag=-Drdbms.url=jdbc:mysql://127.0.0.1:3306/wordpress0?user=root"/>
54 </options>
55 </dev_appserver>
bc08d5a first commit
Nam Nguyen authored
56 </target>
57
58 <target name="update" depends="datanucleusenhance"
59 description="Uploads the application to App Engine.">
60 <appcfg action="update" war="war" />
61 </target>
62
63 <target name="update_indexes" depends="datanucleusenhance"
64 description="Uploads just the datastore index configuration to App Engine.">
65 <appcfg action="update_indexes" war="war" />
66 </target>
67
68 <target name="rollback" depends="datanucleusenhance"
69 description="Rolls back an interrupted application update.">
70 <appcfg action="rollback" war="war" />
71 </target>
72
73 <target name="request_logs"
74 description="Downloads log data from App Engine for the application.">
75 <appcfg action="request_logs" war="war">
76 <options>
77 <arg value="--num_days=5"/>
78 </options>
79 <args>
80 <arg value="logs.txt"/>
81 </args>
82 </appcfg>
83 </target>
84
85 </project>
Something went wrong with that request. Please try again.