Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cloudshell editor link and runtime directory #1012

Merged
merged 1 commit into from Mar 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions samples/README.md
@@ -1,6 +1,6 @@
# Getting Started with Cloud Spanner and the Google Cloud Client libraries

<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=spanner/cloud-client/README.md">
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-spanner&page=editor&open_in_editor=samples/README.md">
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a>

[Cloud Spanner][Spanner] is a horizontally-scalable database-as-a-service
Expand All @@ -13,15 +13,15 @@ the [Google Cloud Client Library for Java][java-spanner].

## Quickstart

Every command here should be run from the root directory of your project (`java-spanner`).

Install [Maven](http://maven.apache.org/).

Build your project with:
Build your project from the root directory (`java-spanner`):

mvn clean package -DskipTests -DskipUTs -Penable-samples

You can then run a given `ClassName` via:
Every subsequent command here should be run from a subdirectory (`cd samples/snippets`).

You can run a given `ClassName` via:

mvn exec:java -Dexec.mainClass=com.example.spanner.ClassName \
-DpropertyName=propertyValue \
Expand Down