incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [1/19] webworks commit: added debug and emulate commands. log not possible on BB/PB
Date Wed, 13 Jun 2012 17:09:08 GMT
Updated Branches:
  refs/heads/master 245c2c67f -> 0b34f40f1


added debug and emulate commands. log not possible on BB/PB


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/0b34f40f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/0b34f40f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/0b34f40f

Branch: refs/heads/master
Commit: 0b34f40f1b16475cd7daf7117332672d6a16a440
Parents: 2329a56
Author: Fil Maj <maj.fil@gmail.com>
Authored: Tue Jun 12 21:46:27 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Tue Jun 12 21:46:27 2012 -0700

----------------------------------------------------------------------
 bin/templates/project/cordova/debug   |   53 ++++++++++++++++++++++++++++
 bin/templates/project/cordova/emulate |   40 +++++++++++++++++++++
 2 files changed, 93 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/0b34f40f/bin/templates/project/cordova/debug
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/debug b/bin/templates/project/cordova/debug
new file mode 100755
index 0000000..3f7f06c
--- /dev/null
+++ b/bin/templates/project/cordova/debug
@@ -0,0 +1,53 @@
+#! /bin/sh
+#       Licensed to the Apache Software Foundation (ASF) under one
+#       or more contributor license agreements.  See the NOTICE file
+#       distributed with this work for additional information
+#       regarding copyright ownership.  The ASF licenses this file
+#       to you under the Apache License, Version 2.0 (the
+#       "License"); you may not use this file except in compliance
+#       with the License.  You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#       Unless required by applicable law or agreed to in writing,
+#       software distributed under the License is distributed on an
+#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#       KIND, either express or implied.  See the License for the
+#       specific language governing permissions and limitations
+#       under the License.
+
+ANT=$(which ant)
+
+if [ -z "$1" ]
+then
+  echo 'usage: debug <platform>'
+  echo 'where <platform> can be one of "blackberry" or "playbook"'
+  echo 'NOTE: please customize the project.properties file first before using this command!'
+  exit 0
+fi
+
+if [ "$1" == "blackberry" ]
+then
+  echo 'Do you have a BlackBerry smartphone connected to your computer? (y/n)'
+  read DEVICE
+  if [ $DEVICE == "y" ]
+  then
+    $ANT blackberry load-device
+  else
+    $ANT blackberry load-simulator
+  fi
+else
+  if [ "$1" == "playbook" ]
+  then
+    echo 'Do you have a BlackBerry Playbook connected to your computer? (y/n)'
+    read DEVICE
+    if [ $DEVICE == "y" ]
+    then
+      $ANT playbook load-device
+    else
+      $ANT playbook load-simulator
+    fi
+  else
+    echo 'Platform not recognized! Please use one of "blackberry" or "playbook" for the platform
parameter.'
+  fi
+fi

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/0b34f40f/bin/templates/project/cordova/emulate
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/emulate b/bin/templates/project/cordova/emulate
new file mode 100755
index 0000000..dc368b5
--- /dev/null
+++ b/bin/templates/project/cordova/emulate
@@ -0,0 +1,40 @@
+#! /bin/sh
+#       Licensed to the Apache Software Foundation (ASF) under one
+#       or more contributor license agreements.  See the NOTICE file
+#       distributed with this work for additional information
+#       regarding copyright ownership.  The ASF licenses this file
+#       to you under the Apache License, Version 2.0 (the
+#       "License"); you may not use this file except in compliance
+#       with the License.  You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#       Unless required by applicable law or agreed to in writing,
+#       software distributed under the License is distributed on an
+#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#       KIND, either express or implied.  See the License for the
+#       specific language governing permissions and limitations
+#       under the License.
+
+ANT=$(which ant)
+
+if [ -z "$1" ]
+then
+  echo 'usage: emulate <platform>'
+  echo 'where <platform> can be one of "blackberry" or "playbook"'
+  echo 'NOTE: please customize the project.properties file first before using this command!'
+  exit 0
+fi
+
+if [ "$1" == "blackberry" ]
+then
+  $ANT blackberry load-simulator
+else
+  if [ "$1" == "playbook" ]
+  then
+    $ANT playbook load-simulator
+  else
+    echo 'Platform not recognized! Please use one of "blackberry" or "playbook" for the platform
parameter.'
+  fi
+fi
+


Mime
View raw message