Hi,

I have a .txt file which I need to load as Resource using 
getResourceAsStream(). The docs (
https://developers.google.com/appengine/kb/java) say:

It is possible to read from a file which is uploaded as part of your 
> application provided that it is in the following locations:
>
>    - war/WEB-INF
>    - in a location matching the <resource-files> pattern in 
>    appengine-web.xml (which by default includes everything)
>
>
I have no <resource-files> entry (so it should use the default), and I put 
this file in both the war/WEB-INF directory AND the war root directory: 
AppEngine CANNOT load the resource. However, if I put the file in 
war/WEB-INF/classes, the system CAN load the resource. I spent way too much 
time trying to get this to work; perhaps I misunderstand something, but if 
not, please update the docs, or make this work as documented. 

Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/qPEWPeMn2wkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to