[CB-3605] Updated README to reflect changes in command-line scripts for cordova-android.

This commit is contained in:
Fil Maj 2013-07-15 11:27:05 -07:00
parent 01ad3f447a
commit 210d7c76e6

View File

@ -41,49 +41,21 @@ Cordova Android 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.
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 package activity] ... create the ./example app or a cordova android project ./bin/create [path package activity] ... create the ./example app or a cordova android project
./bin/autotest ......................... test the cli tools ./bin/check_reqs ....................... checks that your environment is set up for cordova-android development
./bin/test ............................. run mobile-spec ./bin/update [path] .................... updates an existing cordova-android project to the version of the framework
Project Commands Project Commands
These commands live in a generated Cordova Android project. These commands live in a generated Cordova Android project. Any interactions with the emulator require you to have an AVD defined.
./cordova/debug [path] ..................... install to first device ./cordova/clean ........................ cleans the project
./cordova/emulate .......................... start avd (emulator) named default ./cordova/build ........................ calls `clean` then compiles the project
./cordova/log .............................. starts logcat ./cordova/log ........................ stream device or emulate logs to stdout
./cordova/run ........................ calls `build` then deploys to a connected Android device. If no Android device is detected, will launch an emulator and deploy to it.
Running the Example Project ./cordova/version ...................... returns the cordova-android version of the current project
---
Start avd (emulator) named `default`:
./bin/emulate
Create the example project and build it to the first device:
./bin/create
cd example
./cordova/debug
Start adb logcat (console.log calls output here):
./cordova/log
Creating a new Cordova Android Project
---
./bin/create ~/Desktop/myapp com.myapp.special MyApp
Importing a Cordova Android Project into Eclipse Importing a Cordova Android Project into Eclipse
---- ----