Skip to content

Commit 8f07a37

Browse files
author
Frank Natividad
committed
Fixing token replacement and cleaning up Guice
1 parent e867209 commit 8f07a37

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

appengine/endpoints-frameworks-v2/backend/src/main/webapp/WEB-INF/appengine-web.xml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
limitations under the License.
1616
-->
1717
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
18-
<application>${endpoints.project.id}</application>
19-
<version>1</version>
2018
<threadsafe>true</threadsafe>
2119

2220
<basic-scaling>

appengine/endpoints-frameworks-v2/guice-example/pom.xml

+14
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@
9999
</serviceClasses>
100100
</configuration>
101101
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-war-plugin</artifactId>
105+
<version>2.6</version>
106+
<configuration>
107+
<webResources>
108+
<resource>
109+
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
110+
<filtering>true</filtering>
111+
<targetPath>WEB-INF</targetPath>
112+
</resource>
113+
</webResources>
114+
</configuration>
115+
</plugin>
102116
<plugin>
103117
<groupId>org.codehaus.mojo</groupId>
104118
<artifactId>versions-maven-plugin</artifactId>

appengine/endpoints-frameworks-v2/guice-example/src/main/java/com/example/echo/EchoEndpointModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class EchoEndpointModule extends EndpointsModule {
2525
public void configureServlets() {
2626
bind(Echo.class).toInstance(new Echo());
2727
configureEndpoints("/_ah/api/*", ImmutableList.of(Echo.class));
28+
super.configureServlets();
2829
}
2930
}
3031
// [END endpoints_module]

appengine/endpoints-frameworks-v2/guice-example/src/main/webapp/WEB-INF/appengine-web.xml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
limitations under the License.
1616
-->
1717
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
18-
<application>${endpoints.project.id}</application>
19-
<version>1</version>
2018
<threadsafe>true</threadsafe>
2119

2220
<basic-scaling>

0 commit comments

Comments
 (0)