GitHub user nicola opened a pull request:
https://github.com/apache/cordova-firefoxos/pull/20
Discover b2g ports
This should be an helper library that should contain functions to find the
port of an existing b2g simulator (Firefox OS simulator) and eventually
functions to start a new simulator listening on a specific port, so that
`cordova run` and `cordova emulate` can finally work.
The idea is about running `cordova emulate`
- you first scan listening ports to find existing b2g, connect in case they
are found, or a specific port or version is specified (implemented for OS X and
Linux)
- if no ports is found you then start a new simulator (coming soon)
The way I scan ports is straight forward, lsof or netstat in localhost and
I find b2g processes.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nicola/cordova-firefoxos b2g-ports
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-firefoxos/pull/20.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20
----
commit 3225d64a25ff301dc5b1eef82228eb1e7a15fe86
Author: nicolagreco <[email protected]>
Date: 2014-08-01T17:55:15Z
discover b2g ports
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---