You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/03/31 22:26:33 UTC
[06/31] docs commit: [CB-5122] indent code into blocks
[CB-5122] indent code into blocks
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/d22eaadb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/d22eaadb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/d22eaadb
Branch: refs/heads/master
Commit: d22eaadb509cfb33c93c00343ac700a3e5ccdfa7
Parents: 9b53724
Author: Mike Sierra <ms...@adobe.com>
Authored: Tue Nov 5 08:47:27 2013 -0500
Committer: Mike Sierra <ms...@adobe.com>
Committed: Tue Nov 5 08:47:27 2013 -0500
----------------------------------------------------------------------
docs/en/edge/guide/platforms/android/index.md | 6 ++--
docs/en/edge/guide/platforms/android/tools.md | 24 ++++++-------
.../en/edge/guide/platforms/blackberry/tools.md | 16 ++++-----
.../edge/guide/platforms/blackberry10/index.md | 36 ++++++++++----------
.../edge/guide/platforms/blackberry10/tools.md | 24 ++++++-------
docs/en/edge/guide/platforms/ios/tools.md | 10 +++---
docs/en/edge/guide/platforms/wp8/tools.md | 26 +++++++-------
7 files changed, 71 insertions(+), 71 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/android/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/android/index.md b/docs/en/edge/guide/platforms/android/index.md
index 33b42de..14f8ddd 100644
--- a/docs/en/edge/guide/platforms/android/index.md
+++ b/docs/en/edge/guide/platforms/android/index.md
@@ -61,12 +61,12 @@ Mac, you can use a text editor to create or modify the
`~/.bash_profile` file, adding a line such as the following, depending
on where the SDK installs:
- export PATH=${PATH}:/Development/adt-bundle/sdk/platform-tools:/Development/adt-bundle/sdk/tools
+ export PATH=${PATH}:/Development/adt-bundle/sdk/platform-tools:/Development/adt-bundle/sdk/tools
This exposes SDK tools in newly opened terminal windows. Otherwise run
this to make them available in the current session:
- $ source ~/.bash_profile
+ $ source ~/.bash_profile
To modify the PATH environment on Windows 7:
@@ -109,7 +109,7 @@ Once created, here's how to use the SDK to modify it:
* Select the __New Project__ menu item.
* Choose __Android Project from Existing Code__ from the resulting dialog box, and press __Next__:
- ![](img/guide/platforms/android/eclipse_new_project.png)
+ ![](img/guide/platforms/android/eclipse_new_project.png)
* Navigate to `hello`, or whichever directory you created for the project, then to the `platforms/android` subdirectory.
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/android/tools.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/android/tools.md b/docs/en/edge/guide/platforms/android/tools.md
index 6fa8c65..efc6ead 100644
--- a/docs/en/edge/guide/platforms/android/tools.md
+++ b/docs/en/edge/guide/platforms/android/tools.md
@@ -40,8 +40,8 @@ Run the `create` command, specifying the existing path to the project,
the reverse-domain-style package identifier, and the app's display
name. Here is the syntax for both Mac and Windows:
- $ /path/to/cordova-android/bin/create /path/to/project com.example.project_name ProjectName
- $ C:\path\to\cordova-android\bin\create.bat C:\path\to\project com.example.project_name ProjectName
+ $ /path/to/cordova-android/bin/create /path/to/project com.example.project_name ProjectName
+ $ C:\path\to\cordova-android\bin\create.bat C:\path\to\project com.example.project_name ProjectName
## Build
@@ -49,13 +49,13 @@ This cleans then builds a project.
Debug, on Mac or Windows:
- $ /path/to/project/cordova/build --debug
- $ C:\path\to\project\cordova\build.bat --debug
+ $ /path/to/project/cordova/build --debug
+ $ C:\path\to\project\cordova\build.bat --debug
Release, on Mac or Windows:
- $ /path/to/project/cordova/build --release
- $ C:\path\to\project\cordova\build.bat --release
+ $ /path/to/project/cordova/build --release
+ $ C:\path\to\project\cordova\build.bat --release
## Run the App
@@ -65,8 +65,8 @@ The `run` command accepts the following _optional_ parameters:
* Build specification. This includes `--debug`, `--release`, or `--nobuild`.
- $ /path/to/project/cordova/run [Target] [Build]
- $ C:\path\to\project\cordova\run.bat [Target] [Build]
+ $ /path/to/project/cordova/run [Target] [Build]
+ $ C:\path\to\project\cordova\run.bat [Target] [Build]
Make sure you create at least one Android Virtual Device, otherwise
you're prompted to do so with the `android` command. If more than one
@@ -76,10 +76,10 @@ running emulator if no device is found.
## Logging
- $ /path/to/project/cordova/log
- $ C:\path\to\project\cordova\log.bat
+ $ /path/to/project/cordova/log
+ $ C:\path\to\project\cordova\log.bat
### Cleaning
- $ /path/to/project/cordova/clean
- $ C:\path\to\project\cordova\clean.bat
+ $ /path/to/project/cordova/clean
+ $ C:\path\to\project\cordova\clean.bat
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/blackberry/tools.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/blackberry/tools.md b/docs/en/edge/guide/platforms/blackberry/tools.md
index b89e58f..51f8341 100644
--- a/docs/en/edge/guide/platforms/blackberry/tools.md
+++ b/docs/en/edge/guide/platforms/blackberry/tools.md
@@ -40,8 +40,8 @@ Run the `create` command, specifying the existing path to the project,
the reverse-domain-style package identifier, and the app's display
name. Here is the syntax for both Mac and Windows:
- $ /path/to/cordova-blackberry-webworks/bin/create /path/to/my_new_project com.example.project_name ProjectName
- $ /path/to/cordova-blackberry-webworks/bin/create.bat /path/to/my_new_project com.example.project_name ProjectName
+ $ /path/to/cordova-blackberry-webworks/bin/create /path/to/my_new_project com.example.project_name ProjectName
+ $ /path/to/cordova-blackberry-webworks/bin/create.bat /path/to/my_new_project com.example.project_name ProjectName
__NOTE:__ The BlackBerry platform ignores the package name placeholder
(`com.example.project_name`), but it's still required for use by
@@ -55,8 +55,8 @@ You need to do so to supply your BlackBerry signing key password, and
specify locations for the BlackBerry WebWorks SDK and BlackBerry
emulator executables.
- $ /path/to/my_new_project/cordova/build <platform>
- $ /path/to/my_new_project/cordova/build.bat <platform>
+ $ /path/to/my_new_project/cordova/build <platform>
+ $ /path/to/my_new_project/cordova/build.bat <platform>
## Launch emulator
@@ -66,16 +66,16 @@ You need to do so to supply your BlackBerry signing key password, and
specify locations for the BlackBerry WebWorks SDK and BlackBerry
emulator executables.
- $ /path/to/my_new_project/cordova/run <platform>
+ $ /path/to/my_new_project/cordova/run <platform>
and then choose 'no' when prompted with:
- Do you have a BlackBerry device connected to your computer? (y/n)
- $ /path/to/my_new_project/cordova/run <platform>
+ Do you have a BlackBerry device connected to your computer? (y/n)
+ $ /path/to/my_new_project/cordova/run <platform>
and then choose 'no' when prompted with:
- Do you have a BlackBerry device connected to your computer? (y/n)
+ Do you have a BlackBerry device connected to your computer? (y/n)
## Logging
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/blackberry10/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/blackberry10/index.md b/docs/en/edge/guide/platforms/blackberry10/index.md
index fab990b..5f60b61 100644
--- a/docs/en/edge/guide/platforms/blackberry10/index.md
+++ b/docs/en/edge/guide/platforms/blackberry10/index.md
@@ -52,22 +52,22 @@ On Windows:
* Append the Native SDK's install directory to the PATH, for example:
- ;C:\bbndk\host_10_1_0_132\darwin\x86\usr\bin\
+ ;C:\bbndk\host_10_1_0_132\darwin\x86\usr\bin\
On Mac and Linux:
* Edit the `~/.bash_profile` file, adding a line such as the
following, depending on where the Native SDK was installed:
- $ export PATH=${PATH}:/Applications/bbndk/host_10_1_0_132/darwin/x86/usr/bin/
+ $ export PATH=${PATH}:/Applications/bbndk/host_10_1_0_132/darwin/x86/usr/bin/
or for the 10.2 Native SDK:
- $ export PATH=${PATH}:/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/
+ $ export PATH=${PATH}:/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/
* Run the following to apply the change in the current session:
- $ source ~/.bash_profile
+ $ source ~/.bash_profile
## Set up for Signing
@@ -89,10 +89,10 @@ Detailed instuctions can be found here:
Use the `cordova` utility to set up a new project, as described in The
Command-line Interface. For example, in a source-code directory:
- $ cordova create hello com.example.hello
- $ cd hello
- $ cordova platform add blackberry10
- $ cordova build
+ $ cordova create hello com.example.hello
+ $ cd hello
+ $ cordova platform add blackberry10
+ $ cordova build
## Deploy to Emulator
@@ -123,15 +123,15 @@ associates a target named _emu_ with the IP address displayed above.
* On Windows:
- $ platforms\blackberry10\cordova\target.bat add emu 169.254.0.1 -t simulator
+ $ platforms\blackberry10\cordova\target.bat add emu 169.254.0.1 -t simulator
* On Mac/Linux:
- $ platforms/blackberry10/cordova/target add emu 169.254.0.1 -t simulator
+ $ platforms/blackberry10/cordova/target add emu 169.254.0.1 -t simulator
Then, run the `emulate` command to view the app:
- $ cordova emulate blackberry10
+ $ cordova emulate blackberry10
## Deploy to Device
@@ -147,11 +147,11 @@ address, device password and PIN.
* On Windows:
- $ platforms\blackberry10\cordova\target.bat add mydevice 169.254.0.1 -t device --password 123456 --pin FFFF972E
+ $ platforms\blackberry10\cordova\target.bat add mydevice 169.254.0.1 -t device --password 123456 --pin FFFF972E
* On Mac/Linux:
- $ platforms/blackberry10/cordova/target add mydevice 169.254.0.1 -t device --password 123456 --pin FFFF972E
+ $ platforms/blackberry10/cordova/target add mydevice 169.254.0.1 -t device --password 123456 --pin FFFF972E
where:
@@ -161,7 +161,7 @@ where:
Then, run the `run` command to view the app:
- $ cordova run blackberry10
+ $ cordova run blackberry10
If a debug token is not yet set up for the device, an error message
prompts you to use the platform run script with the password you
@@ -169,11 +169,11 @@ provided when registering for signing keys.
* On Windows:
- $ platforms\blackberry10\cordova\run.bat --device --keystorepass mysecret
+ $ platforms\blackberry10\cordova\run.bat --device --keystorepass mysecret
* On Mac/Linux:
- $ platforms/blackberry10/cordova/run --device --keystorepass mysecret
+ $ platforms/blackberry10/cordova/run --device --keystorepass mysecret
## Debugging with WebInspector
@@ -195,11 +195,11 @@ syntax:
* On Windows:
- $ platforms\blackberry10\cordova\build.bat --release --keystorepass mysecret
+ $ platforms\blackberry10\cordova\build.bat --release --keystorepass mysecret
* On Mac/Linux:
- $ platforms/blackberry10/cordova/build --release --keystorepass mysecret
+ $ platforms/blackberry10/cordova/build --release --keystorepass mysecret
The `--keystorepass` option specifies the password you defined when
configuring your computer to sign applications.
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/blackberry10/tools.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/blackberry10/tools.md b/docs/en/edge/guide/platforms/blackberry10/tools.md
index 2694fb5..dace921 100644
--- a/docs/en/edge/guide/platforms/blackberry10/tools.md
+++ b/docs/en/edge/guide/platforms/blackberry10/tools.md
@@ -43,7 +43,7 @@ arguments.
The `create` command creates a new project:
- bin/create <path-to-project> <project-package> <project-name>
+ bin/create <path-to-project> <project-package> <project-name>
where
@@ -68,7 +68,7 @@ or set a target as the default target.
### Add a target
- <path-to-project>/cordova/target add <name> <ip-address> [-t | --type <device | simulator>] [-p | --password <password>] [--pin <device-pin>]
+ <path-to-project>/cordova/target add <name> <ip-address> [-t | --type <device | simulator>] [-p | --password <password>] [--pin <device-pin>]
where
@@ -88,11 +88,11 @@ where
### Remove a target
- <path-to-project>/cordova/target remove <name>
+ <path-to-project>/cordova/target remove <name>
### Set a target as the default
- <path-to-project>/cordova/target default <name>
+ <path-to-project>/cordova/target default <name>
## build
@@ -102,7 +102,7 @@ in debug mode (which produces an unsigned .bar file).
### Build your project in release mode
- <path-to-project>/cordova/build release [-k | --keystorepass <password>] [-b | --buildId <number>] [-p | --params <params-JSON-file>]
+ <path-to-project>/cordova/build release [-k | --keystorepass <password>] [-b | --buildId <number>] [-p | --params <params-JSON-file>]
where
@@ -114,7 +114,7 @@ where
### Build your project in debug mode
- <path-to-project>/cordova/build debug [<target>] [-k | --keystorepass <password>] [-p | --params <params-JSON-file>] [-ll | --loglevel <error|warn|verbose>]
+ <path-to-project>/cordova/build debug [<target>] [-k | --keystorepass <password>] [-p | --params <params-JSON-file>] [-ll | --loglevel <error|warn|verbose>]
where
@@ -144,7 +144,7 @@ installed a debug token, if that target is a BlackBerry device), you
can run the script with no arguments, and the script will package your
app and deploy it to the default target. For example:
- <path-to-project>/cordova/build debug
+ <path-to-project>/cordova/build debug
## run
@@ -153,7 +153,7 @@ or an emulator. Before deploying the app, you must first create a
target for the device or emulator you want to deploy the app to using
the target script. The deploy script will deploy the most recent build of the app.
- <path-to-project>/cordova/run <target>
+ <path-to-project>/cordova/run <target>
where
@@ -168,16 +168,16 @@ The `target` command allows you to add and remove plugins
### Fetch a locally hosted plugin
- <path-to-project>/cordova/plugin fetch <path-to-plugin>
+ <path-to-project>/cordova/plugin fetch <path-to-plugin>
### View a list of installed plugins
- <path-to-project>/cordova/plugin ls
+ <path-to-project>/cordova/plugin ls
### Add a plugin
- <path-to-project>/cordova/plugin add <name>
+ <path-to-project>/cordova/plugin add <name>
### Remove a plugin
- <path-to-project>/cordova/plugin rm <name>
+ <path-to-project>/cordova/plugin rm <name>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/ios/tools.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/ios/tools.md b/docs/en/edge/guide/platforms/ios/tools.md
index 1a80720..53f0213 100644
--- a/docs/en/edge/guide/platforms/ios/tools.md
+++ b/docs/en/edge/guide/platforms/ios/tools.md
@@ -43,21 +43,21 @@ Run the `create` command, specifying the existing path to the project,
the reverse-domain-style package identifier, and the app's display
name.
- $ ./path/to/cordova-ios/bin/create /path/to/my_new_project com.example.project_name ProjectName
+ $ ./path/to/cordova-ios/bin/create /path/to/my_new_project com.example.project_name ProjectName
## Build a project
- $ /path/to/my_new_project/cordova/build
+ $ /path/to/my_new_project/cordova/build
## Run app on emulator
- $ /path/to/my_new_project/cordova/run
+ $ /path/to/my_new_project/cordova/run
## Releasing
- $ /path/to/my_new_project/cordova/release
+ $ /path/to/my_new_project/cordova/release
## Logging
- $ /path/to/my_new_project/cordova/log
+ $ /path/to/my_new_project/cordova/log
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/d22eaadb/docs/en/edge/guide/platforms/wp8/tools.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/wp8/tools.md b/docs/en/edge/guide/platforms/wp8/tools.md
index 58cc674..3d6888b 100644
--- a/docs/en/edge/guide/platforms/wp8/tools.md
+++ b/docs/en/edge/guide/platforms/wp8/tools.md
@@ -56,7 +56,7 @@ There are 2 ways to go about creating a new Apache Cordova WP7 or WP8 applicatio
Run the script :
- >createTemplates.bat -install
+ >createTemplates.bat -install
### Use the create scripts on the command line
@@ -64,16 +64,16 @@ Run the `create` command, specifying the existing path to the project,
the reverse-domain-style package identifier, and the app's display
name. Here is the syntax for both Windows Phone 7 and 8:
- >.\wp7\bin\create PathToNewProject [ PackageName ] [ AppName ]
- >.\wp8\bin\create PathToNewProject [ PackageName ] [ AppName ]
+ >.\wp7\bin\create PathToNewProject [ PackageName ] [ AppName ]
+ >.\wp8\bin\create PathToNewProject [ PackageName ] [ AppName ]
- >PathToNewProject : The path to where you wish to create the project
- >PackageName : The namespace for the project (default is Cordova.Example)
- >AppName : The name of the application (default is CordovaWP8AppProj or CordovaWP7AppProj)
+ >PathToNewProject : The path to where you wish to create the project
+ >PackageName : The namespace for the project (default is Cordova.Example)
+ >AppName : The name of the application (default is CordovaWP8AppProj or CordovaWP7AppProj)
- >examples:
- >.\wp7\bin\create C:\path\to\my_new_project
- >.\wp8\bin\create C:\path\to\my_new_project io.cordova.example CordovaWP8App
+ >examples:
+ >.\wp7\bin\create C:\path\to\my_new_project
+ >.\wp8\bin\create C:\path\to\my_new_project io.cordova.example CordovaWP8App
Launch Visual Studio and open Solution file (.sln) in (C:\path\to\my_new_project)
@@ -83,11 +83,11 @@ Build and Run it
* Debug
- $ C:\path\to\my_new_project\cordova\build --debug
+ $ C:\path\to\my_new_project\cordova\build --debug
* Release
- $ C:\path\to\my_new_project\cordova\build --release
+ $ C:\path\to\my_new_project\cordova\build --release
## Running your application
@@ -97,11 +97,11 @@ Run the 'run' command with the following *optional* parameters
* Build specification. This includes `--debug`, `--release`, or `--nobuild`.
- $ C:\path\to\my_new_project\cordova\run [Target] [Build]
+ $ C:\path\to\my_new_project\cordova\run [Target] [Build]
By default the `run` command will be called with `--emulator --debug` if flags are not provided.
## Cleaning
- $ C:\path\to\my_new_project\cordova\clean
+ $ C:\path\to\my_new_project\cordova\clean