1 <?xml version="1.0" encoding="UTF-8"?>
3 <project name="jME3-SDK" default="default" basedir=".">
4 <description>Builds, tests, and runs the jMonkeyEngine3 SDK.</description>
6 <target name="build" description="Builds the complete SDK" depends="-get-platform">
7 <ant dir="engine" target="update-sdk"/>
8 <property name="nbplatform.dir" location="netbeans"/>
9 <echo file="sdk/nbproject/private/platform-private.properties"
10 message="nbplatform.default.netbeans.dest.dir=${nbplatform.dir}
"/>
11 <echo file="sdk/nbproject/private/platform-private.properties"
12 message="nbplatform.default.harness.dir=${nbplatform.dir}/harness" append="true"/>
13 <ant dir="sdk" target="build"/>
16 <target name="build-engine" description="Builds the engine only">
17 <ant dir="engine" target="clean"/>
18 <ant dir="engine" target="jar"/>
21 <target name="clean" description="Clean all build products">
22 <ant dir="engine" target="clean"/>
23 <ant dir="sdk" target="clean"/>
26 <target name="run" description="Runs the SDK">
27 <ant dir="sdk" target="run"/>
30 <target name="zip" description="Builds the complete SDK and packs it as a ZIP file" depends="build">
31 <ant dir="sdk" target="build-zip"/>
32 <move file="sdk/dist/jmonkeyplatform.zip" tofile="./jME3-SDK.zip"/>
35 <target name="update-platform" description="Updates the base platform to the latest available build">
36 <delete dir="netbeans"/>
37 <antcall target="-get-platform"/>
40 <target name="hudson-nightly" depends="clean, update-platform">
41 <ant dir="engine" target="deploy-hudson"/>
42 <ant dir="engine" target="hudson-update-sdk"/>
43 <ant dir="sdk" target="hudson-updatecenter"/>
46 <target name="-get-platform" depends="-check-platform" unless="platform.present">
47 <echo message="Downloading base platform, this only has to be done once."/>
48 <get src="http://jmonkeyengine.com/platform/base/alpha/platform-base.zip" dest="./" skipexisting="true"/>
49 <unzip src="platform-base.zip" dest="./"/>
50 <delete file="platform-base.zip"/>
53 <target name="-check-platform">
54 <available file="netbeans" property="platform.present"/>