yzhbest / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
Eclipse Public License 1.0
0 stars 0 forks source link

web.xml being "quietly" modified when classes have endpoints @Api annotation #336

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Reproduction:

1. Create a project in Eclipse using the AppEngine plugin
2. Annotate a class with the @Api annotation
3. Notice that web.xml has been filled with some content which really should be 
the user's responsibility. 

Google Plugin for Eclipse 4.4   

3.8.0.v201410302155-rel-r44 

Original issue reported on code.google.com by pay...@google.com on 22 Jul 2015 at 7:22

GoogleCodeExporter commented 8 years ago
other issue with more explanation: 

https://code.google.com/p/googleappengine/issues/detail?id=12161

Not only should this modification not happen, but it's not even necessary to 
have servlet-mapping elements according to the servlet spec. One can use 
filters to route requests and reference servlet classes directly. This comes up 
when using Guice to inject servlets. 

Original comment by pay...@google.com on 22 Jul 2015 at 7:24

GoogleCodeExporter commented 8 years ago
Unchecking the "Google App Engine Cloud Endpoints Builder" in right-click 
Project "Properties" > Builders can prevent this for now, or unchecking Project 
> build automatically in the Eclipse window menu bar.

Original comment by pay...@google.com on 23 Jul 2015 at 2:34