Add Mac OS X support to build script
------------------------------------

                 Key: CB-116
                 URL: https://issues.apache.org/jira/browse/CB-116
             Project: Apache Callback
          Issue Type: Improvement
          Components: BlackBerry
    Affects Versions: 1.2.0
         Environment: Mac OS X
            Reporter: Filip Maj
            Assignee: Filip Maj


With the WebWorks SDK 2.2, we now have Mac OS X support. Yay!

The ANT build script should be modified to determine the OS at build time and 
change the paths to the SDK tools appropriately. Here's a diff:

--- a/build.xml
+++ b/build.xml
@@ -22,7 +22,7 @@

     <target name="load-device" depends="package-app">
         <bbwp code-sign="true" />
-        <exec executable="${properties.bbwp.dir}/bin/JavaLoader.exe" dir="." 
failonerror="true">
+        <exec executable="${properties.bbwp.dir}/bin/javaloader" dir="." 
failonerror="true">
             <arg value="-u" />
             <arg value="load" />
             <arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
@@ -142,7 +142,7 @@
         <sequential>

             <!-- Ensure bbwp executable exists. -->
-            <property name="properties.bbwp.bin" 
location="${properties.bbwp.dir}/bbwp.exe" />
+            <property name="properties.bbwp.bin" 
location="${properties.bbwp.dir}/bbwp" />
             <available file="${properties.bbwp.bin}" 
property="properties.bbwp.exists" />
             <fail unless="properties.bbwp.exists" message="Cannot find 
${properties.bbwp.bin}. Please edit 'bbwp.dir' in your 'project.properties' 
file." />

@@ -178,7 +178,7 @@
     <!-- CLEAN DEVICE -->

     <target name="clean-device" depends="generate-cod-name">
-        <exec executable="${properties.bbwp.dir}/bin/JavaLoader.exe">
+        <exec executable="${properties.bbwp.dir}/bin/javaloader">
             <arg value="-usb" />
             <arg value="erase" />
             <arg value="-f" />

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to