| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This is the sample used in the Cloud Storage Java documentation.
The main file is StorageSample.java.
Create a Google Cloud Storage bucket
This module uses Application Default Credentials. If you are running it outside of Google Compute Engine, you'll need to
You must also be able to work with GitHub repositories.
Clone repository.
git clone https://github.com/GoogleCloudPlatform/java-docs-samples.git
cd java-docs-samples/storage/xml-api/cmdline-sample
# Compile and run
mvn compile install
mvn -q exec:java -Dexec.args="your-bucket-name"To enable logging of HTTP requests and responses (highly recommended when developing), please take a look at logging.properties.
Prerequisites:
Set up Eclipse Preferences
Window > Preferences... (or on Mac, Eclipse > Preferences...)
Select Maven
Create a new project using storage/xml-api/cmdline-sample
Run
| Back | FazBrowse Home | New Git URL |