Home > Software engineering >  How to make resource files privatly and locally accessible to the application with app.yaml in GAE?
How to make resource files privatly and locally accessible to the application with app.yaml in GAE?

Time:05-07

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?

CodePudding user response:

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

CodePudding user response:

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.

  • Related