Skip to content

Commit

Permalink
Updated storage/xml-api/serviceaccount-appengine/sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisvg committed Jan 23, 2018
1 parent 9736379 commit c4cfb5c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 19 deletions.
17 changes: 9 additions & 8 deletions storage/xml-api/serviceaccount-appengine-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
<project>
<modelVersion>4.0.0</modelVersion>

<!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->
<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in anyway.
-->
<parent>
<artifactId>doc-samples</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>../../..</relativePath>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.0.8</version>
</parent>

<groupId>com.google.apis-samples</groupId>
Expand All @@ -33,7 +35,6 @@
<properties>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>
<appengine.sdk.version>1.9.60</appengine.sdk.version> <!-- TODO(): MOVE to /appengine -->
<google-api-client.version>1.23.0</google-api-client.version>
<webappDirectory>${project.build.directory}/${project.build.finalName}
</webappDirectory>
Expand Down Expand Up @@ -87,7 +88,7 @@
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
<configuration>
<port>8888</port>
</configuration>
Expand All @@ -111,7 +112,7 @@
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
/*
* Copyright (c) 2012 Google Inc.
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.api.client.sample.storage.appengine.serviceaccount;
Expand Down Expand Up @@ -59,9 +61,8 @@ public class StorageSample extends HttpServlet {
"\n<?xml-stylesheet href=\"/xsl/listing.xsl\" type=\"text/xsl\"?>\n";

@Override
protected void doGet(
final HttpServletRequest req, final HttpServletResponse resp)
throws IOException {
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws IOException {

try {
AppIdentityCredential credential = new AppIdentityCredential(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# A default log4j configuration for log4j users.
#
# To use this configuration, deploy it into your application's WEB-INF/classes
Expand Down

0 comments on commit c4cfb5c

Please sign in to comment.