You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/06/14 00:38:38 UTC

webworks commit: Removed unused scripts/cruft.

Updated Branches:
  refs/heads/master 0b34f40f1 -> 32c892c72


Removed unused scripts/cruft.


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/32c892c7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/32c892c7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/32c892c7

Branch: refs/heads/master
Commit: 32c892c7239704dbbda3aad3e4ca732ceff72bd3
Parents: 0b34f40
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Jun 13 15:39:12 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Jun 13 15:39:12 2012 -0700

----------------------------------------------------------------------
 README.md                 |   48 +++++---------------
 bin/BOOM                  |   21 ---------
 bin/autotest              |    2 -
 bin/bench                 |   47 -------------------
 bin/create.xml            |   98 ----------------------------------------
 bin/package.json          |   26 -----------
 bin/test                  |   41 -----------------
 bin/tests/autotest.coffee |   24 ----------
 bin/tests/create.coffee   |   40 ----------------
 bin/tests/debug.coffee    |   18 -------
 10 files changed, 12 insertions(+), 353 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index fd28d9a..0a4869b 100644
--- a/README.md
+++ b/README.md
@@ -46,22 +46,11 @@ As an alternative, you can download packaged releases of Cordova from the [Phone
 Cordova BlackBerry Developer Tools
 ---
 
-The Cordova developer tooling is split between general tooling and project level tooling. 
+The Cordova developer tooling is split between general tooling and project level tooling. If you are on Windows, please run the equivalent .bat files instead of the shell scripts :)
 
-To enable the command-line tools available in the ./bin directory, make
-sure you have all of the dependencies installed. You will need
-[NodeJS](http://nodejs.org) (which should come with `npm`). To install
-the dependencies:
-
-    $ cd bin
-    $ npm install
-
-General Commands
+### General Commands
 
     ./bin/create [path appname] ............ creates a sample app with the specified application name, to the specified path
-    ./bin/bench ............................ generate a bench proj
-    ./bin/autotest ......................... test the cli tools
-    ./bin/test ............................. run mobile-spec
 
 Please note that once you `create` a Cordova BlackBerry project, you
 will need to edit the `project.properties` file that resides inside your
@@ -70,21 +59,7 @@ will need to specify things like the location of the BlackBerry Widget
 Packager(s), device and signing key passwords, simulator executables,
 and device IPs (if applicable).
 
-TODO: Project Commands
-
-These commands live in a generated Cordova BlackBerry project. NOTE: not
-available yet.
-
-    ./cordova/debug [path] ..................... install to first device
-    ./cordova/emulate .......................... start avd (emulator) named default
-    ./cordova/log .............................. starts logcat
-
-Running the Example Project (TODO)
----
-
-Start a simulator:
-
-    ./bin/emulate
+#### Running the Example Project
 
 Create the example project and build it to the first device:
 
@@ -92,19 +67,20 @@ Create the example project and build it to the first device:
     cd example
     ./cordova/debug
 
-Start streaming a log from the device
+#### Creating a new Cordova BlackBerry Project
 
-    ./cordova/log
+    ./bin/create ~/Desktop/myapp MyApp
 
-Running the [mobile-spec](http://github.com/apache/incubator-cordova-mobile-spec) tests:
----
+### Project Commands
 
-    ./bin/test
+These commands live in a generated Cordova BlackBerry project. As per
+the note above, please make sure you edit the `project.properties` file
+inside your application directory appropriately otherwise these commands
+will not work!
 
-Creating a new Cordova BlackBerry Project
----
+    ./cordova/debug ............................ install to a connected device or simulator
+    ./cordova/emulate .......................... install to a simulator
 
-    ./bin/create ~/Desktop/myapp MyApp
 
 (Legacy) Creating a New Cordova Project
 -------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/BOOM
----------------------------------------------------------------------
diff --git a/bin/BOOM b/bin/BOOM
deleted file mode 100755
index 266d831..0000000
--- a/bin/BOOM
+++ /dev/null
@@ -1,21 +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.
-#
-#
-./bin/create
-cd ./example && ./cordova/debug && ./cordova/log

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/autotest
----------------------------------------------------------------------
diff --git a/bin/autotest b/bin/autotest
deleted file mode 100755
index 647a5f5..0000000
--- a/bin/autotest
+++ /dev/null
@@ -1,2 +0,0 @@
-#! /usr/bin/env node
-require('nodeunit').reporters.default.run(['bin/tests'])

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/bench
----------------------------------------------------------------------
diff --git a/bin/bench b/bin/bench
deleted file mode 100755
index f7337aa..0000000
--- a/bin/bench
+++ /dev/null
@@ -1,47 +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.
-#
-#
-#
-# Creates an app in `./bench` that posts results to http://cordova-bench.heroku.com with current cordova/Android sha.
-#
-# USAGE
-#   ./bin/bench
-#
-
-# clobber any existing bench
-if [ -e ./bench ]
-then
-    rm -rf ./bench
-fi
-
-# create a benching app
-./bin/create ./bench cordovaBench
-
-# grab the latest bench www code
-git clone git@github.com:brianleroux/cordova-bench.git
-
-# copy it into the app
-cat ./cordova-bench/www/index.html > ./bench/assets/www/index.html
-#cat ~/Desktop/cordova-bench/www/index.html > ./bench/assets/www/index.html
-
-# clean up
-rm -rf ./cordova-bench
-
-# launch to the first device found
-./bin/debug ./bench

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/create.xml
----------------------------------------------------------------------
diff --git a/bin/create.xml b/bin/create.xml
deleted file mode 100644
index 720697c..0000000
--- a/bin/create.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 
-       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.
--->
-
-<project name="cordova" default="create" basedir="../">
-
-	<property name="project.path" value="${basedir}/example"/>
-	<property name="package" value="org.apache.cordova.example"/>
-	<property name="activity" value="cordovaExample"/>
-
-	<target name="create">
-
-		<!-- this stuff is seriously stupid -->
-		<echo file="tmp/package.tmp">package-as-path=${package}</echo>
-		<replace file="tmp/package.tmp" token="." value="\\" />
-		<property file="tmp/package.tmp" />
-
-		<property name="activity.path" value="${project.path}/src/${package-as-path}/${activity}.java" />
-		<property name="manifest.path" value="${project.path}/AndroidManifest.xml" />
-
-		<!-- get the highest target on this machine -->
-		<!-- this stuff is also seriously stupid -->
-		<exec executable="cmd" osfamily="windows" output="tmp/target.list.tmp">
-			<arg line="/c android.bat list targets"/>
-		</exec>
-		<exec executable="android" osfamily="mac" output="tmp/target.list.tmp">
-			<arg line="list targets"/>
-		</exec>
-		<replaceregexp file="tmp/target.list.tmp" match=".*id:\s([0-9]).*" replace="target=\1" flags="s" />
-		<property file="tmp/target.list.tmp" />
-
-		<!-- var VERSION=read('VERSION').replace(/\r\n/,'').replace(/\n/,''); -->
-		<copy file="VERSION" tofile="tmp/VERSION.tmp" overwrite="true" />
-		<replaceregexp file="tmp/VERSION.tmp" match="^" replace="version=" />
-		<replaceregexp file="tmp/VERSION.tmp" match="\r\n" replace="" />
-		<property file="tmp/VERSION.tmp" />
-
-		<!-- clobber any existing example -->
-
-		<!-- create the project -->
-		<exec executable="cmd" osfamily="windows">
-			<arg line="/c android.bat create project --target ${target} --path ${project.path} --package ${package} --activity ${activity}"/>
-		</exec>
-		<exec executable="android" osfamily="mac">
-			<arg line="create project --target ${target} --path ${project.path} --package ${package} --activity ${activity}"/>
-		</exec>
-
-		<!-- update the framework dir -->
-		<exec executable="cmd" osfamily="windows">
-			<arg line="/c android.bat update project --target ${target} --path ${basedir}/framework"/>
-		</exec>
-		<exec executable="android" osfamily="mac">
-			<arg line="update project --target ${target} --path ${basedir}/framework"/>
-		</exec>
-
-		<!-- compile cordova.js and cordova.jar -->
-		<!--	// if you see an error about "Unable to resolve target" then you may need to 
-				// update your android tools or install an additional Android platform version -->
-		<ant antfile="${basedir}/framework/build.xml" useNativeBasedir="true" inheritAll="false" />
-
-		<!-- copy in the project template -->
-		<copy todir="${project.path}" overwrite="true">
-			<fileset dir="${basedir}/bin/templates/project"/>
-		</copy>
-
-		<!-- copy in cordova.js -->
-		<copy file="${basedir}/framework/assets/www/cordova-${version}.js" todir="${project.path}/assets/www/" />
-
-		<!-- copy in cordova.jar -->
-		<copy file="${basedir}/framework/cordova-${version}.jar" todir="${project.path}/libs/" />
-
-		<!-- copy in default activity -->
-		<copy file="${basedir}/bin/templates/Activity.java" tofile="${activity.path}" overwrite="true" />
-
-		<!-- interpolate the activity name and package -->
-		<replaceregexp file="${activity.path}" match="__ACTIVITY__" replace="${activity}" />
-		<replaceregexp file="${activity.path}" match="__ID__" replace="${package}" />
-
-		<replaceregexp file="${manifest.path}" match="__ACTIVITY__" replace="${activity}" />
-		<replaceregexp file="${manifest.path}" match="__PACKAGE__" replace="${package}" />
-	</target>
-</project>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/package.json
----------------------------------------------------------------------
diff --git a/bin/package.json b/bin/package.json
deleted file mode 100644
index df27c19..0000000
--- a/bin/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-  "name":         "cordova-blackberry-webworks-cli",
-  "description":  "CLI tooling for the cordova-blackberry-webworks project",
-  "version":      "0.0.1",
-  "licenses":     [{
-    "type":       "APL 2.0",
-    "url":        "http://www.apache.org/licenses/LICENSE-2.0"
-  }],
-  "main" : "./create",
-  "bin":          {
-    "create":   "./create",
-    "bench":    "./bench",
-    "autotest": "./autotest",
-    "BOOM":     "./BOOM",
-    "test":     "./test"
-  },
-  "homepage":     "http://incubator.apache.org/cordova",
-  "repository":   {
-    "type": "git",
-    "url": "http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks.git"
-  },
-  "dependencies":{
-    "coffee-script":"1.1.2",
-    "nodeunit":"0.5.3"
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/test
----------------------------------------------------------------------
diff --git a/bin/test b/bin/test
deleted file mode 100755
index bc95cc1..0000000
--- a/bin/test
+++ /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.
-#
-#
-set -e
-
-VERSION=$(cat ./VERSION)
-
-# get the latest mobile-spec
-git clone https://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec.git
-
-# clobber test if it exists
-if [ -e ./test ]
-then
-    rm -rf ./test
-fi
-
-# generate a working proj
-./bin/create ./test CordovaTest
-
-# kill the default app and replace it w/ mobile-spec
-rm ./test/www/index.html
-mv ./incubator-cordova-mobile-spec/* ./test/www/.
-
-# build it, launch it and start logging on stdout
-cd ./test && ./cordova/debug && ./cordova/log

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/tests/autotest.coffee
----------------------------------------------------------------------
diff --git a/bin/tests/autotest.coffee b/bin/tests/autotest.coffee
deleted file mode 100644
index 1ee4c39..0000000
--- a/bin/tests/autotest.coffee
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-       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.
-*/
-
-
-exports['you are sane'] = (test) ->
-  test.expect 1
-  test.ok true, "this assertion should always pass"
-  test.done()

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/tests/create.coffee
----------------------------------------------------------------------
diff --git a/bin/tests/create.coffee b/bin/tests/create.coffee
deleted file mode 100644
index 6c87af4..0000000
--- a/bin/tests/create.coffee
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-       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.
-*/
-
-util = require 'util'
-exec = require('child_process').exec
-path = require 'path'
-
-exports['default example project is generated'] = (test) ->
-  test.expect 1
-  exec './bin/create', (error, stdout, stderr) ->
-    test.ok true, "this assertion should pass" unless error?
-    test.done()
-
-exports['default example project has a ./.cordova folder'] = (test) ->
-  test.expect 1
-  path.exists './example/.cordova', (exists) ->
-    test.ok exists, 'the cordova folder exists'
-    test.done()
-
-exports['default example project has a /cordova folder'] = (test) ->
-  test.expect 1
-  path.exists './example/cordova', (exists) ->
-    test.ok exists, 'the other cordova folder exists'
-    test.done()

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/tests/debug.coffee
----------------------------------------------------------------------
diff --git a/bin/tests/debug.coffee b/bin/tests/debug.coffee
deleted file mode 100644
index a5d9eba..0000000
--- a/bin/tests/debug.coffee
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-       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.
-*/

http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/32c892c7/bin/tests/test.coffee
----------------------------------------------------------------------
diff --git a/bin/tests/test.coffee b/bin/tests/test.coffee
deleted file mode 100644
index e69de29..0000000