build.xml 2.3 KB

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