Skip to content

Commit

Permalink
Merge pull request #960 from jean-philippe-martin/nio_examples_fix
Browse files Browse the repository at this point in the history
Move Stat and clarify example command line
  • Loading branch information
jean-philippe-martin committed Apr 27, 2016
2 parents eceec71 + f27b5c3 commit e1d734a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gcloud-java-examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Examples for gcloud-java (Java idiomatic client for [Google Cloud Platform][clou
[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/gcloud-java)
[![Dependency Status](https://www.versioneye.com/user/projects/56bd8ee72a29ed002d2b0969/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56bd8ee72a29ed002d2b0969)

- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
- [Examples] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/cloud/examples/package-summary.html)
- [Homepage](https://googlecloudplatform.github.io/gcloud-java/)
- [Examples](http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/cloud/examples/package-summary.html)

Quickstart
----------
Expand All @@ -37,7 +37,8 @@ To run examples from your command line:

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

3. Compile using Maven: `cd gcloud-java-examples` in command line from your base project directory and then `mvn package appassembler:assemble -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip=true`.
3. Compile using Maven: `mvn install -DskipTests` in command line from your base project directory
then `cd gcloud-java-examples` and finally `mvn package appassembler:assemble -DskipTests`.

4. Run an example from the command line using the Maven-generated scripts.

Expand Down Expand Up @@ -69,6 +70,7 @@ To run examples from your command line:
target/appassembler/bin/DatastoreExample your-project-id my_name add my\ comment
target/appassembler/bin/DatastoreExample your-project-id my_name display
target/appassembler/bin/DatastoreExample your-project-id my_name delete
```

* Here's an example run of `DnsExample`.

Expand Down Expand Up @@ -135,7 +137,7 @@ Java 7 or above is required for using this client.
Versioning
----------

This library follows [Semantic Versioning] (http://semver.org/).
This library follows [Semantic Versioning](http://semver.org/).

It is currently in major version zero (``0.y.z``), which means that anything
may change at any time and the public API should not be considered
Expand Down
1 change: 1 addition & 0 deletions gcloud-java-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.10</version>
<configuration>
<programs>
<program>
Expand Down

0 comments on commit e1d734a

Please sign in to comment.