users@glassfish.java.net

Re: finding folder under domain/domain1/lib

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Mon, 16 Aug 2010 15:44:38 -0700
The current working directory of any GF server is guaranteed to be the config dir of the domain or instance -- as long as you use asadmin to start it.

The lib folder can be accessed like so: 

new File("../lib");


On 8/16/2010 2:46 PM, Justin Lee wrote:
 Look at these system properties:  com.sun.aas.instanceRoot and com.sun.aas.installRoot

On 8/16/10 4:43 PM, glassfish@javadesktop.org wrote:
Is there a way to find the path to a folder under the domain's lib folder?  Does the folder I need to find have to be under one of the other folders such as the ext or the classes folder instead?

I need to do something like

File = new File("folder");

instead of

File = new File("C:/glassfishv3/glassfish/domains/domain1/lib/folder");

Probably a stupid question but it's the end of the day and my brain's not working right.  ;)

Thanks.
[Message sent by forum member 'cain05']

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188