users@glassfish.java.net

Re: Resolving the webroot directory

From: <glassfish_at_javadesktop.org>
Date: Wed, 27 Jan 2010 09:48:29 PST

If you start your domain via "asadmin start-domain" in V2 or V3 then the current working directory is GUARANTEED to be the domain's config directory.

With a default setup you can access the docroot directory like so:

File docroot = new File("../docroot");
[Message sent by forum member 'bnevins' (byron.nevins_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=383316