mirror of https://github.com/apache/jclouds.git
extracted gae application name
git-svn-id: http://jclouds.googlecode.com/svn/trunk@899 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
f7c937f71f
commit
81e3dc885c
|
@ -1,201 +1,218 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
$HeadURL$
|
|
||||||
$Revision$
|
|
||||||
$Date$
|
|
||||||
|
|
||||||
Copyright (C) 2009 Adrian Cole <adrian@jclouds.org>
|
Copyright (C) 2009 Global Cloud Specialists, Inc.
|
||||||
|
<info@globalcloudspecialists.com>
|
||||||
|
|
||||||
====================================================================
|
====================================================================
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
or more contributor license agreements. See the NOTICE file
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
distributed with this work for additional information
|
this work for additional information regarding copyright ownership.
|
||||||
regarding copyright ownership. The ASF licenses this file
|
The ASF licenses this file to you under the Apache License, Version
|
||||||
to you under the Apache License, Version 2.0 (the
|
2.0 (the "License"); you may not use this file except in compliance
|
||||||
"License"); you may not use this file except in compliance
|
with the License. You may obtain a copy of the License at
|
||||||
with the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0.html
|
http://www.apache.org/licenses/LICENSE-2.0.html Unless required by
|
||||||
|
applicable law or agreed to in writing, software distributed under the
|
||||||
Unless required by applicable law or agreed to in writing,
|
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||||
software distributed under the License is distributed on an
|
CONDITIONS OF ANY KIND, either express or implied. See the License for
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
the specific language governing permissions and limitations under the
|
||||||
KIND, either express or implied. See the License for the
|
License.
|
||||||
specific language governing permissions and limitations
|
====================================================================
|
||||||
under the License.
|
-->
|
||||||
====================================================================
|
|
||||||
-->
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>jclouds-s3-samples-project</artifactId>
|
<artifactId>jclouds-s3-samples-project</artifactId>
|
||||||
<groupId>org.jclouds</groupId>
|
<groupId>org.jclouds</groupId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>jclouds-gae-s3-example</artifactId>
|
<artifactId>jclouds-gae-s3-example</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>JClouds Sample for Google App Engine</name>
|
<name>JClouds Sample for Google App Engine</name>
|
||||||
<description>JClouds Sample for Google App Engine</description>
|
<description>JClouds Sample for Google App Engine</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- note you must set the property ${appengine.home} to a valid extraction of appengine-java-sdk -->
|
<!--
|
||||||
<appengine.home>/Users/adriancole/Desktop/appengine-java-sdk-1.2.1</appengine.home>
|
note you must set the property ${appengine.home} to a valid
|
||||||
<devappserver.address>localhost</devappserver.address>
|
extraction of appengine-java-sdk
|
||||||
<devappserver.port>8088</devappserver.port>
|
-->
|
||||||
</properties>
|
<appengine.home>/Users/adriancole/Desktop/appengine-java-sdk-1.2.1</appengine.home>
|
||||||
|
<appengine.applicationid>jclouds-s3-example</appengine.applicationid>
|
||||||
|
<devappserver.address>localhost</devappserver.address>
|
||||||
|
<devappserver.port>8088</devappserver.port>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>jclouds-gae</artifactId>
|
<artifactId>jclouds-gae</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.code.guice</groupId>
|
<groupId>com.google.code.guice</groupId>
|
||||||
<artifactId>guice-servlet</artifactId>
|
<artifactId>guice-servlet</artifactId>
|
||||||
<version>2.0</version>
|
<version>2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>standard</artifactId>
|
<artifactId>standard</artifactId>
|
||||||
<groupId>taglibs</groupId>
|
<groupId>taglibs</groupId>
|
||||||
<version>1.1.2</version>
|
<version>1.1.2</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<artifactId>jstl</artifactId>
|
<artifactId>jstl</artifactId>
|
||||||
<groupId>javax.servlet</groupId>
|
<groupId>javax.servlet</groupId>
|
||||||
<version>1.1.2</version>
|
<version>1.1.2</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.geronimo.specs</groupId>
|
<groupId>org.apache.geronimo.specs</groupId>
|
||||||
<artifactId>geronimo-el_1.0_spec</artifactId>
|
<artifactId>geronimo-el_1.0_spec</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.geronimo.specs</groupId>
|
<groupId>org.apache.geronimo.specs</groupId>
|
||||||
<artifactId>geronimo-jsp_2.1_spec</artifactId>
|
<artifactId>geronimo-jsp_2.1_spec</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.geronimo.specs</groupId>
|
<groupId>org.apache.geronimo.specs</groupId>
|
||||||
<artifactId>geronimo-servlet_2.5_spec</artifactId>
|
<artifactId>geronimo-servlet_2.5_spec</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.2</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.appengine</groupId>
|
<groupId>com.google.appengine</groupId>
|
||||||
<artifactId>appengine-tools-api</artifactId>
|
<artifactId>appengine-tools-api</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>1.2.1</version>
|
||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>${appengine.home}/lib/appengine-tools-api.jar</systemPath>
|
<systemPath>${appengine.home}/lib/appengine-tools-api.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}</finalName>
|
<finalName>${project.artifactId}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>bakersoftware</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-replacer-plugin</artifactId>
|
||||||
<executions>
|
<version>0.0.9</version>
|
||||||
<execution>
|
<executions>
|
||||||
<id>integration</id>
|
<execution>
|
||||||
<phase>integration-test</phase>
|
<phase>compile</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>test</goal>
|
<goal>replace</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<systemProperties>
|
<file>src/main/webapp/WEB-INF/appengine-web.xml</file>
|
||||||
<property>
|
<token>@APPLICATION@</token>
|
||||||
<name>appengine.home</name>
|
<value>${appengine.applicationid}</value>
|
||||||
<value>${appengine.home}</value>
|
</configuration>
|
||||||
</property>
|
</execution>
|
||||||
<property>
|
</executions>
|
||||||
<name>devappserver.address</name>
|
</plugin>
|
||||||
<value>${devappserver.address}</value>
|
<plugin>
|
||||||
</property>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<property>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<name>devappserver.port</name>
|
<executions>
|
||||||
<value>${devappserver.port}</value>
|
<execution>
|
||||||
</property>
|
<id>integration</id>
|
||||||
<property>
|
<phase>integration-test</phase>
|
||||||
<name>warfile</name>
|
<goals>
|
||||||
<value>${project.build.directory}/${project.artifactId}</value>
|
<goal>test</goal>
|
||||||
</property>
|
</goals>
|
||||||
</systemProperties>
|
<configuration>
|
||||||
<additionalClasspathElements>
|
<systemProperties>
|
||||||
<additionalClasspathElement>${appengine.home}/lib/appengine-tools-api.jar
|
<property>
|
||||||
|
<name>appengine.home</name>
|
||||||
|
<value>${appengine.home}</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>devappserver.address</name>
|
||||||
|
<value>${devappserver.address}</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>devappserver.port</name>
|
||||||
|
<value>${devappserver.port}</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>warfile</name>
|
||||||
|
<value>${project.build.directory}/${project.artifactId}</value>
|
||||||
|
</property>
|
||||||
|
</systemProperties>
|
||||||
|
<additionalClasspathElements>
|
||||||
|
<additionalClasspathElement>${appengine.home}/lib/appengine-tools-api.jar
|
||||||
</additionalClasspathElement>
|
</additionalClasspathElement>
|
||||||
</additionalClasspathElements>
|
</additionalClasspathElements>
|
||||||
<environmentVariables>
|
<environmentVariables>
|
||||||
<DEBUG>true</DEBUG>
|
<DEBUG>true</DEBUG>
|
||||||
<SDK_BIN>${appengine.home}/bin</SDK_BIN>
|
<SDK_BIN>${appengine.home}/bin</SDK_BIN>
|
||||||
<SDK_LIB>${appengine.home}/lib</SDK_LIB>
|
<SDK_LIB>${appengine.home}/lib</SDK_LIB>
|
||||||
<SDK_CONFIG>${appengine.home}/config/sdk</SDK_CONFIG>
|
<SDK_CONFIG>${appengine.home}/config/sdk</SDK_CONFIG>
|
||||||
</environmentVariables>
|
</environmentVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>live</id>
|
<id>live</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>integration</id>
|
<id>integration</id>
|
||||||
<phase>integration-test</phase>
|
<phase>integration-test</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>test</goal>
|
<goal>test</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<property>
|
<property>
|
||||||
<name>jclouds.aws.accesskeyid</name>
|
<name>jclouds.aws.accesskeyid</name>
|
||||||
<value>${jclouds.aws.accesskeyid}</value>
|
<value>${jclouds.aws.accesskeyid}</value>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>jclouds.aws.secretaccesskey</name>
|
<name>jclouds.aws.secretaccesskey</name>
|
||||||
<value>${jclouds.aws.secretaccesskey}</value>
|
<value>${jclouds.aws.secretaccesskey}</value>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>appengine.home</name>
|
<name>appengine.home</name>
|
||||||
<value>${appengine.home}</value>
|
<value>${appengine.home}</value>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>devappserver.address</name>
|
<name>devappserver.address</name>
|
||||||
<value>${devappserver.address}</value>
|
<value>${devappserver.address}</value>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>devappserver.port</name>
|
<name>devappserver.port</name>
|
||||||
<value>${devappserver.port}</value>
|
<value>${devappserver.port}</value>
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>warfile</name>
|
<name>warfile</name>
|
||||||
<value>${project.build.directory}/${project.artifactId}</value>
|
<value>${project.build.directory}/${project.artifactId}</value>
|
||||||
</property>
|
</property>
|
||||||
</systemProperties>
|
</systemProperties>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -34,8 +34,8 @@ import javax.servlet.http.HttpServlet;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.jclouds.aws.AWSResponseException;
|
||||||
import org.jclouds.aws.s3.S3Context;
|
import org.jclouds.aws.s3.S3Context;
|
||||||
import org.jclouds.aws.s3.AWSResponseException;
|
|
||||||
import org.jclouds.aws.s3.domain.S3Bucket;
|
import org.jclouds.aws.s3.domain.S3Bucket;
|
||||||
import org.jclouds.logging.Logger;
|
import org.jclouds.logging.Logger;
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,10 @@
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>jclouds-googlecode</id>
|
||||||
|
<url>http://jclouds.googlecode.com/svn/repo</url>
|
||||||
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
|
Loading…
Reference in New Issue