mirror of https://github.com/perkeep/perkeep.git
63 lines
1.6 KiB
XML
63 lines
1.6 KiB
XML
<project>
|
|
<property name="sdk.dir" location="/tmp/appengine-java-sdk" />
|
|
|
|
<import file="${sdk.dir}/config/user/ant-macros.xml" />
|
|
|
|
<path id="project.classpath">
|
|
<pathelement path="war/WEB-INF/classes" />
|
|
<fileset dir="war/WEB-INF/lib">
|
|
<include name="**/*.jar" />
|
|
</fileset>
|
|
<fileset dir="${sdk.dir}/lib">
|
|
<include name="shared/**/*.jar" />
|
|
</fileset>
|
|
</path>
|
|
|
|
<target name="copyjars"
|
|
description="Copies the App Engine JARs to the WAR.">
|
|
<copy
|
|
todir="war/WEB-INF/lib"
|
|
flatten="true">
|
|
<fileset dir="${sdk.dir}/lib/user">
|
|
<include name="**/*.jar" />
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
<target name="copylibs"
|
|
description="Copies the app-specific libs to the WAR.">
|
|
<copy
|
|
todir="war/WEB-INF/lib"
|
|
flatten="true">
|
|
<fileset dir="lib">
|
|
<include name="**/*.jar" />
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
<target name="compile" depends="copylibs,copyjars"
|
|
description="Compiles Java source and copies other source files to the WAR.">
|
|
<mkdir dir="war/WEB-INF/classes" />
|
|
<copy todir="war/WEB-INF/classes">
|
|
<fileset dir="src">
|
|
<exclude name="**/*.java" />
|
|
</fileset>
|
|
</copy>
|
|
<javac
|
|
srcdir="src"
|
|
destdir="war/WEB-INF/classes"
|
|
classpathref="project.classpath"
|
|
debug="on" />
|
|
</target>
|
|
|
|
<target name="runserver" depends="compile"
|
|
description="Starts the development server.">
|
|
<dev_appserver war="war" port="8080" >
|
|
<options>
|
|
<arg value="--jvm_flag=-Xdebug"/>
|
|
</options>
|
|
</dev_appserver>
|
|
</target>
|
|
|
|
</project>
|