Diff of /env3d/branches/env3d_jme3/support/build.xml [r272] .. [r273] Maximize Restore

  Switch to side-by-side view

--- a/env3d/branches/env3d_jme3/support/build.xml
+++ b/env3d/branches/env3d_jme3/support/build.xml
@@ -135,7 +135,10 @@
                 <os family="mac"/>
                 <matches string="${os.version}" pattern="^10.[8-99]."/>
             </and>
-        </condition>        
+        </condition>   
+        <condition property="mac" value="true">
+            <os family="mac"/>
+        </condition>     
         <antcall target="replaceLaunch4JExe"/>        
 
         
@@ -151,8 +154,26 @@
         <echo>Windows executable file ${dist.dir}/${application.title}.exe is created successfully</echo>
     </target>
 
-    
-    <target name="mac-app">
+    <taskdef name="bundleapp"
+             classname="com.oracle.appbundler.AppBundlerTask"   
+             classpath="lib/appbundler-1.0.jar" />
+
+    <property environment="env" />
+    <target name="mac-app" if="mac">
+        <bundleapp outputdirectory="${dist.dir}"
+            name="${application.title}"
+            displayname="${application.title}"
+            identifier="com.env3d.${application.title}"
+            mainclassname="Game">
+<!--            <runtime dir="/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home" />-->
+            <runtime dir="${java.home}/../" />
+            <classpath file="${dist.dir}/${application.title}.jar" />
+        </bundleapp>
+        <echo>Using java_home ${java.home}</echo>
+        <echo>Mac executable file ${dist.dir}/${application.title}-MacOSX.zip is created successfully</echo>
+    </target>
+    
+    <target name="mac-app-old">
         <echo>MacOSX Application Creation</echo>
         <copy file="extras/macapp/Info.plist" tofile="extras/macapp/_Info.plist">
             <filterchain>