Files
jmonkeyengine/build.xml
T

147 lines
5.9 KiB
XML
Raw Normal View History

2011-03-14 18:47:20 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<project name="jME3-SDK" default="default" basedir=".">
<description>Builds, tests, and runs the jMonkeyEngine3 SDK.</description>
2011-03-14 19:23:02 +00:00
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
2011-05-03 20:21:16 +00:00
<target name="default" depends="zip"/>
2011-03-14 18:47:20 +00:00
2013-01-25 14:00:46 +00:00
<target name="build" description="Builds the complete SDK, copies over engine libraries." depends="-check-platform, -update-sdk-platform-config">
2011-03-14 18:47:20 +00:00
<ant dir="engine" target="update-sdk"/>
<ant dir="sdk" target="build"/>
</target>
<target name="build-engine" description="Builds the engine libraries only">
2011-03-14 19:02:06 +00:00
<ant dir="engine" target="clean"/>
2011-11-22 14:57:00 +00:00
<ant dir="engine" target="jar"/>
<ant dir="engine" target="javadoc"/>
<ant dir="engine" target="create-zip-distribution"/>
2011-03-14 19:02:06 +00:00
</target>
<target name="clean" description="Clean all build products" depends="-check-platform, -update-sdk-platform-config">
2011-03-14 18:47:20 +00:00
<ant dir="engine" target="clean"/>
<ant dir="sdk" target="clean"/>
</target>
<target name="run" description="Runs the SDK" depends="-check-platform, -update-sdk-platform-config">
<ant dir="engine" target="update-sdk"/>
2011-03-14 18:47:20 +00:00
<ant dir="sdk" target="run"/>
</target>
2013-09-02 22:03:12 +00:00
<target name="zip" description="Builds the complete SDK and packs it as a ZIP file">
<ant dir="engine" target="update-sdk"/>
<ant dir="sdk" target="build-zip"/>
<property file="sdk/nbproject/project.properties"/>
2013-01-25 14:00:46 +00:00
<move file="sdk/dist/${app.name}.zip" tofile="./jMonkeyEngine-SDK-${app.version}-NoBundles.zip"/>
2011-03-14 18:47:20 +00:00
</target>
2011-03-14 19:23:02 +00:00
<target name="update-platform" description="Updates the base platform to the latest available build" depends="-remove-platform,-check-platform"/>
2011-03-14 18:47:20 +00:00
2011-03-14 19:23:02 +00:00
<target name="-check-platform" depends="-check-platform-present" unless="platform.present">
<property file="sdk/nbproject/project.properties"/>
2011-03-14 18:47:20 +00:00
<echo message="Downloading base platform, this only has to be done once."/>
2013-01-25 14:00:46 +00:00
<get src="${netbeans.platform.url}" dest="./platform-base.zip" skipexisting="false"/>
2011-03-14 18:47:20 +00:00
<unzip src="platform-base.zip" dest="./"/>
2011-03-14 19:23:02 +00:00
<antcall target="-update-sdk-platform-config"/>
2011-03-14 19:02:06 +00:00
<delete file="platform-base.zip"/>
2011-03-14 18:47:20 +00:00
</target>
2011-03-14 19:23:02 +00:00
<target name="-check-platform-present">
2012-10-02 15:50:17 +00:00
<available file="sdk/nbproject/private/platform-private.properties" property="platform.present"/>
2011-03-14 18:47:20 +00:00
</target>
2011-03-14 19:26:21 +00:00
<target name="-remove-platform">
<delete dir="netbeans" failonerror="false"/>
2012-10-02 15:50:17 +00:00
<delete file="sdk/nbproject/private/platform-private.properties" failonerror="false"/>
2011-03-14 19:26:21 +00:00
</target>
2012-10-02 15:50:17 +00:00
<target name="create-platform-config" depends="-update-sdk-platform-config">
</target>
2011-03-14 19:14:08 +00:00
<target name="-update-sdk-platform-config">
<property name="nbplatform.dir" location="netbeans"/>
<mkdir dir="sdk/nbproject/private"/>
2011-03-14 19:14:08 +00:00
<echo file="sdk/nbproject/private/platform-private.properties"
2011-03-23 23:18:55 +00:00
message="nbplatform.default.netbeans.dest.dir=${nbplatform.dir}&#xD;&#xA;"/>
2011-03-14 19:14:08 +00:00
<echo file="sdk/nbproject/private/platform-private.properties"
2011-03-23 23:51:23 +00:00
message="nbplatform.default.harness.dir=${nbplatform.dir}${file.separator}harness&#xD;&#xA;" append="true"/>
<replace file="sdk/nbproject/private/platform-private.properties" token="\" value="\\"/>
2011-03-14 19:14:08 +00:00
</target>
2011-03-24 04:17:16 +00:00
<!--
****************************************************************
Only Relevant for building nightly on Hudson server from here on
****************************************************************
-->
2011-11-22 15:12:32 +00:00
<target name="hudson-nightly" depends="-hudson-revert-changes, -check-platform, -update-sdk-platform-config, -hudson-build-engine">
2011-12-04 05:31:33 +00:00
<!--ant dir="engine" target="copy-javadoc"/-->
2011-11-22 14:57:00 +00:00
<ant dir="engine" target="create-zip-distribution"/>
<ant dir="sdk" target="hudson-nightly"/>
</target>
2011-11-22 15:12:32 +00:00
<target name="hudson-stable" depends="-hudson-revert-changes, -check-platform, -update-sdk-platform-config, -hudson-build-engine">
2011-11-22 14:57:00 +00:00
<!--ant dir="engine" target="dist"/-->
<ant dir="engine" target="create-zip-distribution"/>
<ant dir="sdk" target="hudson-stable"/>
</target>
2011-03-14 19:14:08 +00:00
2011-11-22 15:12:32 +00:00
<target name="hudson-release" depends="-hudson-revert-changes, -check-platform, -update-sdk-platform-config, -hudson-build-engine">
2011-11-22 14:57:00 +00:00
<ant dir="sdk" target="hudson-release"/>
</target>
2011-11-22 15:12:32 +00:00
<target name="-hudson-revert-changes">
2013-01-15 02:23:51 +00:00
<exec executable="svn" dir="engine" failonerror="true">
<arg value="cleanup" />
</exec>
<exec executable="svn" dir="engine">
<arg value="revert" />
2011-11-22 15:12:32 +00:00
<arg value="-R" />
<arg value="." />
</exec>
<exec executable="svn" dir="engine">
<arg value="cleanup" />
</exec>
<exec executable="svn" dir="engine">
<arg value="update" />
</exec>
2011-11-22 15:12:32 +00:00
<exec executable="svn" dir="sdk">
<arg value="cleanup" />
</exec>
<exec executable="svn" dir="sdk">
<arg value="revert" />
<arg value="." />
<arg value="-R" />
</exec>
<exec executable="svn" dir="sdk">
<arg value="cleanup" />
</exec>
<exec executable="svn" dir="sdk">
<arg value="update" />
</exec>
2011-11-22 14:57:00 +00:00
<exec executable="svn" dir=".">
<arg value="unlock" />
<arg value="engine" />
</exec>
2011-11-22 15:12:32 +00:00
<exec executable="svn" dir=".">
<arg value="unlock" />
<arg value="sdk" />
</exec>
</target>
<target name="-hudson-build-engine">
<!--ant dir="engine" target="build-bullet-natives"/-->
<ant dir="engine" target="jar"/>
2011-11-22 14:57:00 +00:00
<ant dir="engine" target="javadoc"/>
<ant dir="engine" target="update-sdk-nobuild"/>
</target>
2011-11-22 15:12:32 +00:00
2011-03-14 18:47:20 +00:00
</project>