Skip to content

Commit a783200

Browse files
committed
Re-order examples README, add LoggingExample to appassambler config
1 parent 7168fff commit a783200

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

gcloud-java-examples/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,6 @@ To run examples from your command line:
101101
target/appassembler/bin/DnsExample delete some-sample-zone
102102
```
103103
104-
* Here's an example run of `PubSubExample`.
105-
106-
Before running the example, go to the [Google Developers Console][developers-console] to ensure that "Google Cloud Pub/Sub" is enabled.
107-
```
108-
target/appassembler/bin/PubSubExample create topic test-topic
109-
target/appassembler/bin/PubSubExample create subscription test-topic test-subscription
110-
target/appassembler/bin/PubSubExample publish test-topic message1 message2
111-
target/appassembler/bin/PubSubExample pull sync test-subscription 2
112-
```
113-
114104
* Here's an example run of `LoggingExample`.
115105
116106
Before running the example, go to the [Google Developers Console][developers-console] to ensure
@@ -124,6 +114,16 @@ To run examples from your command line:
124114
target/appassembler/bin/LoggingExample list entries
125115
```
126116
117+
* Here's an example run of `PubSubExample`.
118+
119+
Before running the example, go to the [Google Developers Console][developers-console] to ensure that "Google Cloud Pub/Sub" is enabled.
120+
```
121+
target/appassembler/bin/PubSubExample create topic test-topic
122+
target/appassembler/bin/PubSubExample create subscription test-topic test-subscription
123+
target/appassembler/bin/PubSubExample publish test-topic message1 message2
124+
target/appassembler/bin/PubSubExample pull sync test-subscription 2
125+
```
126+
127127
* Here's an example run of `ResourceManagerExample`.
128128
129129
Be sure to change the placeholder project ID "your-project-id" with your own globally unique project ID.

gcloud-java-examples/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
<mainClass>com.google.cloud.examples.dns.DnsExample</mainClass>
7373
<name>DnsExample</name>
7474
</program>
75+
<program>
76+
<mainClass>com.google.cloud.examples.logging.LoggingExample</mainClass>
77+
<name>LoggingExample</name>
78+
</program>
7579
<program>
7680
<mainClass>com.google.cloud.examples.nio.CountBytes</mainClass>
7781
<name>CountBytes</name>

0 commit comments

Comments
 (0)