You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/11/30 22:59:39 UTC
webworks commit: [CB-1668] - updating project scripts to be more in
line with other platforms
Updated Branches:
refs/heads/master c747a03f7 -> 1cf79b079
[CB-1668] - updating project scripts to be more in line with other platforms
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/1cf79b07
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/1cf79b07
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/1cf79b07
Branch: refs/heads/master
Commit: 1cf79b079410739bbfb999f04183b5b18ab9032d
Parents: c747a03
Author: Tim Kim <ti...@adobe.com>
Authored: Fri Nov 30 13:59:30 2012 -0800
Committer: Tim Kim <ti...@adobe.com>
Committed: Fri Nov 30 13:59:30 2012 -0800
----------------------------------------------------------------------
bin/templates/project/cordova/build | 34 +++++++++++++++++++++++
bin/templates/project/cordova/debug | 41 ----------------------------
bin/templates/project/cordova/emulate | 34 -----------------------
bin/templates/project/cordova/run | 41 ++++++++++++++++++++++++++++
4 files changed, 75 insertions(+), 75 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1cf79b07/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/build b/bin/templates/project/cordova/build
new file mode 100755
index 0000000..d788360
--- /dev/null
+++ b/bin/templates/project/cordova/build
@@ -0,0 +1,34 @@
+#! /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: build <platform>'
+ echo 'where <platform> can be one of "blackberry", "playbook" or "qnx"'
+ echo 'NOTE: please customize the project.properties file first before using this command!'
+ exit 0
+fi
+
+if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
+then
+ $ANT $1 build
+else
+ echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
+fi
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1cf79b07/bin/templates/project/cordova/debug
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/debug b/bin/templates/project/cordova/debug
deleted file mode 100755
index 494f797..0000000
--- a/bin/templates/project/cordova/debug
+++ /dev/null
@@ -1,41 +0,0 @@
-#! /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", "playbook" or "qnx"'
- echo 'NOTE: please customize the project.properties file first before using this command!'
- exit 0
-fi
-
-if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
-then
- echo 'Do you have a BlackBerry device connected to your computer? (y/n)'
- read DEVICE
- if [ $DEVICE == "y" ]
- then
- $ANT $1 debug-device
- else
- $ANT $1 load-simulator
- fi
-else
- echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
-fi
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1cf79b07/bin/templates/project/cordova/emulate
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/emulate b/bin/templates/project/cordova/emulate
deleted file mode 100755
index 91d9ce0..0000000
--- a/bin/templates/project/cordova/emulate
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /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" -o "$1" == "playbook" -o "$1" == "qnx" ]
-then
- $ANT $1 load-simulator
-else
- echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
-fi
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/1cf79b07/bin/templates/project/cordova/run
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/run b/bin/templates/project/cordova/run
new file mode 100755
index 0000000..260ff24
--- /dev/null
+++ b/bin/templates/project/cordova/run
@@ -0,0 +1,41 @@
+#! /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: run <platform>'
+ echo 'where <platform> can be one of "blackberry", "playbook" or "qnx"'
+ echo 'NOTE: please customize the project.properties file first before using this command!'
+ exit 0
+fi
+
+if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
+then
+ echo 'Do you have a BlackBerry device connected to your computer? (y/n)'
+ read DEVICE
+ if [ $DEVICE == "y" ]
+ then
+ $ANT $1 debug-device
+ else
+ $ANT $1 load-simulator
+ fi
+else
+ echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
+fi