Browse Source

TOOLS: Add Appengine support to the geodata combination tool.

pull/567/head
Philippe Liard 14 years ago
committed by Mihaela Rosca
parent
commit
8866292d8d
4 changed files with 64 additions and 0 deletions
  1. +15
    -0
      tools/java/data/README
  2. +28
    -0
      tools/java/data/pom.xml
  3. +8
    -0
      tools/java/data/webapp/WEB-INF/appengine-web.xml
  4. +13
    -0
      tools/java/data/webapp/WEB-INF/logging.properties

+ 15
- 0
tools/java/data/README View File

@ -0,0 +1,15 @@
How to install the Appengine SDK to the Maven local repository?
Note that this needs to be done only once.
$ mvn gae:unpack
Note that you don't need to manually download any SDK.
How to generate the WAR?
Note that this must be done before running the webapp locally and before
deploying it to Appengine.
$ mvn war:war
How to run the webapp locally?
$ mvn gae:run
How to deploy the webapp to Appengine?
$ mvn gae:update

+ 28
- 0
tools/java/data/pom.xml View File

@ -12,6 +12,20 @@
<version>1.0-SNAPSHOT</version>
<name>Libphonenumber Data tools</name>
<properties>
<gae.version>1.5.4</gae.version>
</properties>
<repositories>
<repository>
<id>mvnrepository</id>
<url>http://mvnrepository.com/artifact/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
@ -30,6 +44,20 @@
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>net.kindleit</groupId>
<artifactId>maven-gae-plugin</artifactId>
<version>0.9.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>


+ 8
- 0
tools/java/data/webapp/WEB-INF/appengine-web.xml View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>libphonenumber-combine-geodata</application>
<version>1</version>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
</appengine-web-app>

+ 13
- 0
tools/java/data/webapp/WEB-INF/logging.properties View File

@ -0,0 +1,13 @@
# A default java.util.logging configuration.
# (All App Engine logging is through java.util.logging by default).
#
# To use this configuration, copy it into your application's WEB-INF
# folder and add the following to your appengine-web.xml:
#
# <system-properties>
# <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
# </system-properties>
#
# Set the default logging level for all loggers to WARNING
.level = WARNING

Loading…
Cancel
Save