Is there a way I can get the path to the data directory of the deployment I am in.
For example, lets say my deployment is in <as_directory>/server/default/deploy/foo.war
I want my java code to be able to read and write files from the
<as_directory>/server/default/data directory. Is there a function or method for getting the path to the data directory analogous to System.getProperties( "user.dir" ) or do I just have to use relative pathing?
Thanks in advance.
JM