Skip to content

Commit

Permalink
Fix javadoc in examples to match the README
Browse files Browse the repository at this point in the history
Fix javadoc in examples to match the README
Also use "log in" instead of "login" where a verb is needed instead of a
noun.
  • Loading branch information
jean-philippe-martin authored and mziccard committed Jun 30, 2016
1 parent d5cf006 commit 46596d6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion gcloud-java-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ libraryDependencies += "com.google.cloud" % "gcloud-java-examples" % "0.2.4"

To run examples from your command line:

1. Login using gcloud SDK (`gcloud auth login` in command line)
1. Log in using gcloud SDK (`gcloud auth login` in command line)

2. Set your current project using `gcloud config set project PROJECT_ID`. This step is not necessary for `ResourceManagerExample`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@
*
* <p>Steps needed for running the example:
* <ol>
* <li>login using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code mvn compile}</li>
* <li>run using maven -
* <pre>{@code mvn exec:java -Dexec.mainClass="com.google.cloud.examples.bigquery.BigQueryExample"
* -Dexec.args="[<project_id>]
* <li>log in using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code cd gcloud-java-examples;
* mvn package appassembler:assemble -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip=true}
* </li>
* <li>run -
* <pre>{@code target/appassembler/bin/BigQueryExample [<project_id>]
* list datasets |
* list tables <dataset> |
* list jobs |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,11 @@
*
* <p>Steps needed for running the example:<ol>
* <li>login using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code mvn compile}</li>
* <li>run using maven -
* <pre>{@code mvn exec:java -Dexec.mainClass="com.google.cloud.examples.datastore.DatastoreExample"
* -Dexec.args="<project_id> <user>
* delete |
* display |
* add <comment> |
* set <email> <phone>}</pre>
* <li>compile using maven - {@code cd gcloud-java-examples;
* mvn package appassembler:assemble -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip=true}
* </li>
* <li>run - {@code target/appassembler/bin/DatastoreExample
* [projectId] [user] [delete|display|add comment|set <email> <phone>]}</li>
* </ol>
*
* <p>If no action is provided {@code display} is executed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
* or you can directly pass in a GCS file name to use. In that case you have to
* be logged in (using e.g. the gcloud auth command).
*
* <p>See the README for a command line to run this example.
* <p>See the README for compilation instructions. Run this code with
* {@code target/appassembler/bin/Stat --help | --check | --list | <file>}
*
* <p>In short, this version (in gcloud-java-examples) is in a package that lists gcloud-java-nio
* as a dependency, so it will work directly without having to do any special work.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
*
* <p>This example creates, deletes, gets, and lists projects.
*
* <p> Steps needed for running the example:<ol>
* <li>login using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code mvn compile}</li>
* <li>run using maven - {@code mvn exec:java
* -Dexec.mainClass="com.google.cloud.examples.resourcemanager.ResourceManagerExample"
* -Dexec.args="[list | [create | delete | get] projectId]"}</li>
* <p>Steps needed for running the example:<ol>
* <li>log in using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code cd gcloud-java-examples;
* mvn package appassembler:assemble -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip=true}
* </li>
* <li>run - {@code target/appassembler/bin/ResourceManagerExample
* [list | [create | delete | get] projectId]}</li>
* </ol>
*/
public class ResourceManagerExample {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@
*
* <p>Steps needed for running the example:
* <ol>
* <li>login using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code mvn compile}</li>
* <li>run using maven -
* <pre>{@code mvn exec:java -Dexec.mainClass="com.google.cloud.examples.storage.StorageExample"
* -Dexec.args="[<project_id>]
* <li>log in using gcloud SDK - {@code gcloud auth login}.</li>
* <li>compile using maven - {@code cd gcloud-java-examples;
* mvn package appassembler:assemble -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip=true}
* </li>
* <li>run -
* <pre>{@code target/appassembler/bin/StorageExample [<project_id>]
* list [<bucket>] |
* info [<bucket> [<file>]] |
* download <bucket> <path> [local_file] |
Expand Down

0 comments on commit 46596d6

Please sign in to comment.