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>
5 <fail message="Please build using Ant 1.7.1 or higher.">
8 <antversion atleast="1.7.1"/>
13 <target name="build" description="Builds the complete SDK" depends="-check-platform, -update-sdk-platform-config">
14 <ant dir="engine" target="update-sdk"/>
15 <ant dir="sdk" target="zip-templates"/>
16 <ant dir="sdk" target="build"/>
19 <target name="build-engine" description="Builds the engine only">
20 <ant dir="engine" target="clean"/>
21 <ant dir="engine" target="jar"/>
24 <target name="clean" description="Clean all build products">
25 <ant dir="engine" target="clean"/>
26 <ant dir="sdk" target="clean"/>
29 <target name="run" description="Runs the SDK" depends="build">
30 <ant dir="sdk" target="run"/>
33 <target name="zip" description="Builds the complete SDK and packs it as a ZIP file" depends="build">
34 <ant dir="sdk" target="build-zip"/>
35 <move file="sdk/dist/jmonkeyplatform.zip" tofile="./jME3-SDK.zip"/>
38 <target name="update-platform" description="Updates the base platform to the latest available build" depends="-remove-platform,-check-platform"/>
40 <target name="hudson-nightly" depends="update-platform">
41 <ant dir="engine" target="deploy-hudson"/>
42 <ant dir="engine" target="hudson-update-sdk"/>
43 <ant dir="sdk" target="hudson-nightly"/>
46 <target name="hudson-stable" depends="update-platform">
47 <ant dir="engine" target="dist"/>
48 <ant dir="engine" target="hudson-update-sdk"/>
49 <ant dir="sdk" target="hudson-nightly"/>
52 <target name="-check-platform" depends="-check-platform-present" unless="platform.present">
53 <echo message="Downloading base platform, this only has to be done once."/>
54 <get src="http://jmonkeyengine.googlecode.com/files/platform-base.zip" dest="./" skipexisting="true"/>
55 <!--get src="http://jmonkeyengine.com/platform/base/alpha/platform-base.zip" dest="./" skipexisting="true"/-->
56 <unzip src="platform-base.zip" dest="./"/>
57 <antcall target="-update-sdk-platform-config"/>
58 <delete file="platform-base.zip"/>
61 <target name="-check-platform-present">
62 <available file="netbeans" property="platform.present"/>
65 <target name="-remove-platform">
66 <delete dir="netbeans" failonerror="false"/>
69 <target name="-update-sdk-platform-config">
70 <property name="nbplatform.dir" location="netbeans"/>
71 <mkdir dir="sdk/nbproject/private"/>
72 <echo file="sdk/nbproject/private/platform-private.properties"
73 message="nbplatform.default.netbeans.dest.dir=${nbplatform.dir}
"/>
74 <echo file="sdk/nbproject/private/platform-private.properties"
75 message="nbplatform.default.harness.dir=${nbplatform.dir}${file.separator}harness
" append="true"/>
76 <replace file="sdk/nbproject/private/platform-private.properties" token="\" value="\\"/>
79 <target name="update-sdk-platform-config" depends="-update-sdk-platform-config"/>