Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (68 sloc) 2.92 KB
<!-- This is a template Ant file for a very basic Google AppEngine project -->
<project name="myproject" default="war">
<!-- When you copy this template to your working directories, change the
value of appengine.sdk accordingly. You may also want to use Ant's
property file feature, allowing each developer to have their own
local property file with the path to the SDK from that workspace. -->
<property name="appengine.sdk" location="/home/dewd/apps/appengine-java-sdk-1.5.5"/>
<!-- Check that the SDK value is set and seems sane, so we can give a nicer
error if not. -->
<fail message="Please define the appengine.sdk property to point to your SDK directory">
<condition>
<not> <and>
<isset property="appengine.sdk"/>
<available file="${appengine.sdk}/config/user/ant-macros.xml"/>
</and> </not>
</condition>
</fail>
<!-- Pick up the Ant macros and taskdefs for App Engine -->
<import file="${appengine.sdk}/config/user/ant-macros.xml"/>
<!-- Remote debug port for dev_appserver -->
<property name="debug.port" value="5005"/>
<!-- HTTP port for dev_appserver -->
<property name="http.port" value="8080"/>
<!-- Name of log file to write logs to -->
<property name="log.file" value="app.log"/>
<!-- Number of days worth of logs to retrieve -->
<property name="log.days" value="2"/>
<!-- Change if you like e.g. "war" better than "www" for the output -->
<property name="war.dir" location="www"/>
<target name="runserver"
description="Run the dev_appserver">
<dev_appserver war="${war.dir}" port="${http.port}"/>
</target>
<target name="dev_appserver" depends="runserver"/>
<target name="debug"
description="Launches dev_appserver with remote debugging enabled">
<echo message="Launching dev_appserver on Web port ${http.port}, Java remote debug port ${debug.port}"/>
<dev_appserver war="${war.dir}" port="${http.port}">
<options>
<arg value="--jvm_flag=-Xdebug"/>
<arg value="--jvm_flag=-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=${debug.port}"/>
</options>
</dev_appserver>
</target>
<target name="update"
description="Uploads the application, including indexes">
<appcfg action="update" war="${war.dir}"/>
</target>
<target name="update_indexes"
description="Uploads only the application's indexes">
<appcfg action="update_indexes" war="${war.dir}"/>
</target>
<target name="rollback"
description="Rolls back any in-progress application update">
<appcfg action="rollback" war="${war.dir}"/>
</target>
<target name="request_logs"
description="Downloads the application's logs">
<appcfg action="request_logs" war="${war.dir}">
<options>
<arg value="--num_days=${log.days}"/>
</options>
<args>
<arg value="${log.file}"/>
</args>
</appcfg>
</target>
</project>
Something went wrong with that request. Please try again.