From b7a60d04e877c00b9a892fbc40a99d30506aeeba Mon Sep 17 00:00:00 2001 From: William Chang Date: Mon, 16 May 2016 12:20:01 -0700 Subject: [PATCH] Updating firebase-event-proxy/pom.xml and parent pom.xml. (#239) * Updating firebase-event-proxy/pom.xml so that it is more like other pom's and references the parent pom.xml. Adding firebase-event-proxy to parent pom.xml * Fixing checkstyle issues --- .../gae-firebase-event-proxy/pom.xml | 81 ++++--------------- .../FirebaseEventProxy.java | 26 +++--- .../ServletContextListenerImpl.java | 2 +- .../src/main/webapp/WEB-INF/appengine-web.xml | 3 +- .../src/main/webapp/WEB-INF/web.xml | 5 +- pom.xml | 1 + 6 files changed, 32 insertions(+), 86 deletions(-) diff --git a/appengine/firebase-event-proxy/gae-firebase-event-proxy/pom.xml b/appengine/firebase-event-proxy/gae-firebase-event-proxy/pom.xml index c4975f1f095..4554b7dc37c 100644 --- a/appengine/firebase-event-proxy/gae-firebase-event-proxy/pom.xml +++ b/appengine/firebase-event-proxy/gae-firebase-event-proxy/pom.xml @@ -10,21 +10,24 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + 4.0.0 war 1.0-SNAPSHOT - com.example.GaeFirebaseEventProxy - GaeFirebaseEventProxy + com.example.gaefirebaseeventproxy + gaefirebaseeventproxy + + + com.google.cloud + doc-samples + 1.0.0 + ../../.. + gae-firebase-event-proxy 1 - 1.9.36 - 2.0.9.74.v20150814 UTF-8 true @@ -38,7 +41,7 @@ com.google.appengine appengine-api-1.0-sdk - ${appengine.version} + ${appengine.sdk.version} javax.servlet @@ -71,13 +74,13 @@ com.google.appengine appengine-testing - ${appengine.version} + ${appengine.sdk.version} test com.google.appengine appengine-api-stubs - ${appengine.version} + ${appengine.sdk.version} test @@ -86,71 +89,15 @@ ${project.build.directory}/${project.build.finalName}/WEB-INF/classes - - org.codehaus.mojo - versions-maven-plugin - 2.1 - - - compile - - display-dependency-updates - display-plugin-updates - - - - - - org.apache.maven.plugins - 3.1 - maven-compiler-plugin - - 1.7 - 1.7 - - - - org.apache.maven.plugins - maven-war-plugin - 2.4 - - true - - - - ${basedir}/src/main/webapp/WEB-INF - true - WEB-INF - - - - - com.google.appengine appengine-maven-plugin - ${appengine.version} + ${appengine.sdk.version} false ${app.version} - - - - - - com.google.appengine - gcloud-maven-plugin - ${gcloud.plugin.version} - - true - - diff --git a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/FirebaseEventProxy.java b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/FirebaseEventProxy.java index ffff83eaa34..4c67beb5d14 100644 --- a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/FirebaseEventProxy.java +++ b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/FirebaseEventProxy.java @@ -14,7 +14,17 @@ * limitations under the License. */ -package com.example.GaeFirebaseEventProxy; +package com.example.gaefirebaseeventproxy; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.firebase.client.AuthData; +import com.firebase.client.DataSnapshot; +import com.firebase.client.Firebase; +import com.firebase.client.FirebaseError; +import com.firebase.client.ValueEventListener; +import com.firebase.security.token.TokenGenerator; +import com.google.appengine.api.utils.SystemProperty; import java.io.FileInputStream; import java.io.IOException; @@ -27,16 +37,6 @@ import java.util.Properties; import java.util.logging.Logger; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.firebase.client.AuthData; -import com.firebase.client.DataSnapshot; -import com.firebase.client.Firebase; -import com.firebase.client.FirebaseError; -import com.firebase.client.ValueEventListener; -import com.firebase.security.token.TokenGenerator; -import com.google.appengine.api.utils.SystemProperty; - public class FirebaseEventProxy { private static final Logger log = Logger.getLogger(FirebaseEventProxy.class.getName()); @@ -49,8 +49,8 @@ public FirebaseEventProxy() { } public void start() { - String FIREBASE_LOCATION = "https://gae-fb-proxy.firebaseio.com/"; - Firebase firebase = new Firebase(FIREBASE_LOCATION); + String firebaseLocation = "https://gae-fb-proxy.firebaseio.com/"; + Firebase firebase = new Firebase(firebaseLocation); // Authenticate with Firebase firebase.authWithCustomToken(this.firebaseAuthToken, new Firebase.AuthResultHandler() { diff --git a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/ServletContextListenerImpl.java b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/ServletContextListenerImpl.java index b50dc4d3961..ffee0cee769 100644 --- a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/ServletContextListenerImpl.java +++ b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/java/com/example/GaeFirebaseEventProxy/ServletContextListenerImpl.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.example.GaeFirebaseEventProxy; +package com.example.gaefirebaseeventproxy; import java.util.logging.Logger; diff --git a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/appengine-web.xml b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/appengine-web.xml index 96aaab69ef4..dcf0932551f 100644 --- a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/appengine-web.xml +++ b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/appengine-web.xml @@ -1,3 +1,4 @@ + - - ${app.id} ${app.version} diff --git a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/web.xml b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/web.xml index b8ded3bcce1..427fd14c909 100644 --- a/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/web.xml +++ b/appengine/firebase-event-proxy/gae-firebase-event-proxy/src/main/webapp/WEB-INF/web.xml @@ -1,3 +1,4 @@ + - - - com.example.GaeFirebaseEventProxy.ServletContextListenerImpl + com.example.gaefirebaseeventproxy.ServletContextListenerImpl index.jsp diff --git a/pom.xml b/pom.xml index adbe586579e..097b3c63a85 100644 --- a/pom.xml +++ b/pom.xml @@ -52,6 +52,7 @@ appengine/datastore/indexes appengine/datastore/indexes-exploding appengine/datastore/indexes-perfect + appengine/firebase-event-proxy/gae-firebase-event-proxy appengine/guestbook-objectify appengine/helloworld appengine/images