</not>
</condition>
</fail>
+
+ <target name="default" depends="zip"/>
- <target name="build" description="Builds the complete SDK" depends="-check-platform">
+<!-- <target name="build" description="Builds the complete SDK" depends="-check-platform, -update-sdk-platform-config">-->
+ <target name="build" description="Builds the complete SDK">
<ant dir="engine" target="update-sdk"/>
<ant dir="sdk" target="build"/>
</target>
- <target name="build-engine" description="Builds the engine only">
+ <target name="build-engine" description="Builds the engine libraries only">
<ant dir="engine" target="clean"/>
- <ant dir="engine" target="jar"/>
+ <ant dir="engine" target="dist"/>
</target>
<target name="clean" description="Clean all build products">
<ant dir="sdk" target="clean"/>
</target>
- <target name="run" description="Runs the SDK" depends="build">
+ <target name="run" description="Runs the SDK">
+ <ant dir="engine" target="update-sdk"/>
<ant dir="sdk" target="run"/>
</target>
<target name="zip" description="Builds the complete SDK and packs it as a ZIP file" depends="build">
- <ant dir="sdk" target="build-zip"/>
- <move file="sdk/dist/jmonkeyplatform.zip" tofile="./jME3-SDK.zip"/>
+ <propertyfile file="sdk/nbproject/project.properties"/>
+ <move file="sdk/dist/${app.name}.zip" tofile="./jMonkeyEngine-GDE-${app.version}.zip"/>
</target>
-
+
<target name="update-platform" description="Updates the base platform to the latest available build" depends="-remove-platform,-check-platform"/>
- <target name="hudson-nightly" depends="update-platform">
- <ant dir="engine" target="deploy-hudson"/>
- <ant dir="engine" target="hudson-update-sdk"/>
- <ant dir="sdk" target="hudson-nightly"/>
- </target>
-
- <target name="hudson-stable" depends="update-platform">
- <ant dir="engine" target="dist"/>
- <ant dir="engine" target="hudson-update-sdk"/>
- <ant dir="sdk" target="hudson-nightly"/>
- </target>
-
<target name="-check-platform" depends="-check-platform-present" unless="platform.present">
+ <property file="sdk/nbproject/project.properties"/>
<echo message="Downloading base platform, this only has to be done once."/>
- <get src="http://jmonkeyengine.com/platform/base/alpha/platform-base.zip" dest="./" skipexisting="true"/>
+ <!--get src="http://jmonkeyengine.googlecode.com/files/platform-base.zip" dest="./" skipexisting="true"/-->
+ <get src="http://jmonkeyengine.com/platform/base/alpha/platform-base.zip" dest="./" skipexisting="false"/>
+ <!--get src="http://jmonkeyengine.com/updates/${app.version}/platform-base.zip" dest="./" skipexisting="false"/-->
<unzip src="platform-base.zip" dest="./"/>
<antcall target="-update-sdk-platform-config"/>
<delete file="platform-base.zip"/>
<echo file="sdk/nbproject/private/platform-private.properties"
message="nbplatform.default.netbeans.dest.dir=${nbplatform.dir}
"/>
<echo file="sdk/nbproject/private/platform-private.properties"
- message="nbplatform.default.harness.dir=${nbplatform.dir}/harness" append="true"/>
+ message="nbplatform.default.harness.dir=${nbplatform.dir}${file.separator}harness
" append="true"/>
+ <replace file="sdk/nbproject/private/platform-private.properties" token="\" value="\\"/>
+ </target>
+
+ <!--
+ ****************************************************************
+ Only Relevant for building nightly on Hudson server from here on
+ ****************************************************************
+ -->
+
+ <target name="hudson-nightly" depends="update-platform">
+ <exec executable="svn" dir="engine">
+ <arg value="update" />
+ </exec>
+ <ant dir="engine" target="dist"/>
+ <ant dir="engine" target="build-bullet-natives"/>
+ <ant dir="engine" target="update-sdk"/>
+ <ant dir="sdk" target="hudson-nightly"/>
+ </target>
+
+ <target name="hudson-stable" depends="update-platform">
+ <exec executable="svn" dir="engine">
+ <arg value="update" />
+ </exec>
+ <ant dir="engine" target="dist"/>
+ <ant dir="engine" target="build-bullet-natives"/>
+ <ant dir="engine" target="update-sdk"/>
+ <ant dir="sdk" target="hudson-stable"/>
</target>
-</project>
\ No newline at end of file
+</project>