Updated Branches: refs/heads/master d8f3fd094 -> 90779d5d6
[CB-2967] implementation of project level list-started-emulators functionality built into cordova.js, commit includes unix and windows hooks, and node hook Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/90779d5d Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/90779d5d Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/90779d5d Branch: refs/heads/master Commit: 90779d5d63c2954511dce9a2e3f2554b522a1c3b Parents: d8f3fd0 Author: lorinbeer <[email protected]> Authored: Thu Jul 11 16:23:04 2013 -0700 Committer: lorinbeer <[email protected]> Committed: Thu Jul 11 16:23:04 2013 -0700 ---------------------------------------------------------------------- .../project/cordova/lib/list-started-emulators | 23 ++++++++++++++++++++ .../cordova/lib/list-started-emulators.bat | 20 +++++++++++++++++ .../cordova/lib/list-started-emulators.js | 20 +++++++++++++++++ 3 files changed, 63 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/90779d5d/blackberry10/bin/templates/project/cordova/lib/list-started-emulators ---------------------------------------------------------------------- diff --git a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators new file mode 100755 index 0000000..e000620 --- /dev/null +++ b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# +# 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 + +node list-started-emulators.js http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/90779d5d/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat ---------------------------------------------------------------------- diff --git a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat new file mode 100644 index 0000000..95bd584 --- /dev/null +++ b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.bat @@ -0,0 +1,20 @@ +:: 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. + +@ECHO OFF + [email protected] list-started-emulators.js http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/90779d5d/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.js b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.js new file mode 100644 index 0000000..aba3f5e --- /dev/null +++ b/blackberry10/bin/templates/project/cordova/lib/list-started-emulators.js @@ -0,0 +1,20 @@ +// 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. + +var cordova = require('./cordova'); + +cordova.listTargets('simulator', true);
