Browse Source

fix build script

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6978 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
123b540f29
1 changed files with 10 additions and 7 deletions
  1. 10 7
      build.xml

+ 10 - 7
build.xml

@@ -3,13 +3,8 @@
 <project name="jME3-SDK" default="default" basedir=".">
     <description>Builds, tests, and runs the jMonkeyEngine3 SDK.</description>
 
-    <target name="build" description="Builds the complete SDK" depends="-get-platform">
+    <target name="build" description="Builds the complete SDK" depends="-update-sdk-platform-config, -get-platform">
         <ant dir="engine" target="update-sdk"/>
-        <property name="nbplatform.dir" location="netbeans"/>
-        <echo file="sdk/nbproject/private/platform-private.properties"
-              message="nbplatform.default.netbeans.dest.dir=${nbplatform.dir}&#xa;"/>
-        <echo file="sdk/nbproject/private/platform-private.properties"
-              message="nbplatform.default.harness.dir=${nbplatform.dir}/harness" append="true"/>
         <ant dir="sdk" target="build"/>
     </target>
 
@@ -43,7 +38,7 @@
         <ant dir="sdk" target="hudson-updatecenter"/>
     </target>
 
-    <target name="-get-platform" depends="-check-platform" unless="platform.present">
+    <target name="-get-platform" depends="-check-platform, -update-sdk-platform-config" unless="platform.present">
         <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"/>
         <unzip src="platform-base.zip" dest="./"/>
@@ -54,4 +49,12 @@
         <available file="netbeans" property="platform.present"/>
     </target>
 
+    <target name="-update-sdk-platform-config">
+        <property name="nbplatform.dir" location="netbeans"/>
+        <echo file="sdk/nbproject/private/platform-private.properties"
+              message="nbplatform.default.netbeans.dest.dir=${nbplatform.dir}&#xa;"/>
+        <echo file="sdk/nbproject/private/platform-private.properties"
+              message="nbplatform.default.harness.dir=${nbplatform.dir}/harness" append="true"/>
+    </target>
+
 </project>