Skip to content

Commit

Permalink
Re-order examples README, add LoggingExample to appassambler config
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Jul 20, 2016
1 parent 4c211cc commit 49be9ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gcloud-java-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,6 @@ To run examples from your command line:
target/appassembler/bin/DnsExample delete some-sample-zone
```
* Here's an example run of `PubSubExample`.
Before running the example, go to the [Google Developers Console][developers-console] to ensure that "Google Cloud Pub/Sub" is enabled.
```
target/appassembler/bin/PubSubExample create topic test-topic
target/appassembler/bin/PubSubExample create subscription test-topic test-subscription
target/appassembler/bin/PubSubExample publish test-topic message1 message2
target/appassembler/bin/PubSubExample pull sync test-subscription 2
```
* Here's an example run of `LoggingExample`.
Before running the example, go to the [Google Developers Console][developers-console] to ensure
Expand All @@ -124,6 +114,16 @@ To run examples from your command line:
target/appassembler/bin/LoggingExample list entries
```
* Here's an example run of `PubSubExample`.
Before running the example, go to the [Google Developers Console][developers-console] to ensure that "Google Cloud Pub/Sub" is enabled.
```
target/appassembler/bin/PubSubExample create topic test-topic
target/appassembler/bin/PubSubExample create subscription test-topic test-subscription
target/appassembler/bin/PubSubExample publish test-topic message1 message2
target/appassembler/bin/PubSubExample pull sync test-subscription 2
```
* Here's an example run of `ResourceManagerExample`.
Be sure to change the placeholder project ID "your-project-id" with your own globally unique project ID.
Expand Down
4 changes: 4 additions & 0 deletions gcloud-java-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
<mainClass>com.google.cloud.examples.dns.DnsExample</mainClass>
<name>DnsExample</name>
</program>
<program>
<mainClass>com.google.cloud.examples.logging.LoggingExample</mainClass>
<name>LoggingExample</name>
</program>
<program>
<mainClass>com.google.cloud.examples.nio.CountBytes</mainClass>
<name>CountBytes</name>
Expand Down

0 comments on commit 49be9ac

Please sign in to comment.