OSDN Git Service

fix build script
[mikumikustudio/MikuMikuStudio.git] / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <project name="jME3-SDK" default="default" basedir=".">
4     <description>Builds, tests, and runs the jMonkeyEngine3 SDK.</description>
5
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}&#xa;"/>
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"/>
14     </target>
15
16     <target name="build-engine" description="Builds the engine only">
17         <ant dir="engine" target="clean"/>
18         <ant dir="engine" target="jar"/>
19     </target>
20
21     <target name="clean" description="Clean all build products">
22         <ant dir="engine" target="clean"/>
23         <ant dir="sdk" target="clean"/>
24     </target>
25
26     <target name="run" description="Runs the SDK">
27         <ant dir="sdk" target="run"/>
28     </target>
29
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"/>
33     </target>
34
35     <target name="update-platform" description="Updates the base platform to the latest available build">
36         <delete dir="netbeans"/>
37         <antcall target="-get-platform"/>
38     </target>
39
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"/>
44     </target>
45
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"/>
51     </target>
52
53     <target name="-check-platform">
54         <available file="netbeans" property="platform.present"/>
55     </target>
56
57 </project>