Hmmm... That is not the right path because it would assume that the app is right on the root of the file system which shouldn't be the case. So either you need another way to get the actual File path. Check out:
http://stackoverflow.com/questions/4719891/how-to-get-real-path-of-the-app-in-the-play

-James


On 12/05/2011 03:39 PM, Lukasz Piliszczuk wrote:
Hi,

Play.applicationPath.getPath() returns "/app" which seems correct when I
browse the cedar filesystem with the bash command.
But when I try to get a file with a java.io.File it's dosen't working.

For now I fixed the problem by switching to amazon s3 but I don't think
it's proper for some case like generating a pdf with a specific font
file which I need to include in my java code. This is something that
should be directly available in the app for me.

Thanks for your help,
Lukas

--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/heroku/-/hQ1yL9XjgmsJ.
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/heroku?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
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/heroku?hl=en.

Reply via email to