'How to make resource files privatly and locally accessible to the application with app.yaml in GAE?

In appengine-web.xml we have <resource-files> tag to make resources files accessible to the application at runtime but not public, but in the new app.yaml we don't.

How can I make files privatly and locally accessible to the application with app.yaml like it used to be with the <resource-files> tag in Google App Engine?



Solution 1:[1]

After deploying a test application, I could verify that it's not necessary any special configuration in app.yaml anymore to have access to the contents of WEB-INF. Everything there can be used using the ServletContext method getResource and getResourceAsStream as expected.

Solution 2:[2]

According to the documentation

If you are using an appengine-web.xml in your project, the app.yaml is automatically generated for you at deployment.

Why not just create the appengine-web.xml as you normally would. Deploy your app. Then take a look at the generated app.yaml file

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Allan Veloso
Solution 2