1 | <project> |
---|
2 | <property name="sdk.dir" location="../appengine-java-sdk" /> |
---|
3 | <import file="${sdk.dir}/config/user/ant-macros.xml" /> |
---|
4 | <path id="project.classpath"> |
---|
5 | <pathelement path="war/WEB-INF/classes" /> |
---|
6 | <fileset dir="war/WEB-INF/lib"> |
---|
7 | <include name="**/*.jar" /> |
---|
8 | </fileset> |
---|
9 | <fileset dir="${sdk.dir}/lib"> |
---|
10 | <include name="shared/**/*.jar" /> |
---|
11 | </fileset> |
---|
12 | </path> |
---|
13 | <target name="copyjars" |
---|
14 | description="Copies the App Engine and ABCL JARs to the WAR."> |
---|
15 | <copy |
---|
16 | todir="war/WEB-INF/lib" |
---|
17 | flatten="true"> |
---|
18 | <fileset dir="${sdk.dir}/lib/user"> |
---|
19 | <include name="**/*.jar" /> |
---|
20 | </fileset> |
---|
21 | <fileset dir="../abcl"> |
---|
22 | <include name="dist/*.jar" /> |
---|
23 | </fileset> |
---|
24 | </copy> |
---|
25 | <copy |
---|
26 | todir="war/fasls"> |
---|
27 | <fileset dir="src"> |
---|
28 | <include name="*.abcl" /> |
---|
29 | </fileset> |
---|
30 | </copy> |
---|
31 | </target> |
---|
32 | <target name="compile" depends="copyjars" |
---|
33 | description="Compiles Java source and copies other source files to the WAR."> |
---|
34 | <mkdir dir="war/WEB-INF/classes" /> |
---|
35 | <copy todir="war/WEB-INF/classes"> |
---|
36 | <fileset dir="src"> |
---|
37 | <exclude name="**/*.java" /> |
---|
38 | </fileset> |
---|
39 | </copy> |
---|
40 | <javac |
---|
41 | srcdir="src" |
---|
42 | destdir="war/WEB-INF/classes" |
---|
43 | classpathref="project.classpath" |
---|
44 | debug="on" /> |
---|
45 | </target> |
---|
46 | <target name="clean" description="Cleans all the jars and fasls."> |
---|
47 | <delete> |
---|
48 | <fileset dir="." includes="**/*.jar" /> |
---|
49 | <fileset dir="." includes="**/*.class" /> |
---|
50 | <fileset dir="." includes="**/*.abcl" /> |
---|
51 | </delete> |
---|
52 | </target> |
---|
53 | <target name="runserver" depends="compile" |
---|
54 | description="Starts the development server."> |
---|
55 | <dev_appserver war="war" /> |
---|
56 | </target> |
---|
57 | <target name="runserver-debug" depends="compile" |
---|
58 | description="Starts the development server."> |
---|
59 | <dev_appserver war="war" port="8888"/> |
---|
60 | </target> |
---|
61 | </project> |
---|