dev@glassfish.java.net

finding das.properties file

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Mon, 12 Sep 2011 15:28:15 -0400

Seems simple enough, but is this the right way to find the
das.properties file in an instance? This code is being run in the
gms-adapter module:

     @Inject
     ServerEnvironment env;


     if (server.isInstance()) {
         try {
             ServerDirs sDirs = new ServerDirs(env.getInstanceRoot());
             File dasProps = sDirs.getDasPropertiesFile();
             // do stuff
         } catch (IOException ioe) {
             // cry
         }
     }

It works, but that doesn't guarantee it's right, knowwhatimean?

Thanks,
Bobby