*
* @param gd the group descriptor, or <code>null</code> to check
* the command line
*/
private void checkLoggingConfig(SharedActivationGroupDescriptor gd) {
Message message;
String source = gd == null ? getString("cmdline")
: getString("groupVM");
Properties p = gd == null ? envCheck.getProperties()
: gd.getServerProperties();
String task = FileAccessCheckTask.class.getName();
String name = "java.util.logging.config.file";
String phrase = getString("loggingconfig");
String logConfName = p.getProperty(name);
if (logConfName == null) {
message = new Message(Reporter.INFO,
getString("noconfig"),
getString("loggingconfigExp"));
} else {
String[] args = new String[]{name, phrase};
Object lobj = envCheck.launch(null, gd, task, args);
if (lobj == null) {
message = new Message(Reporter.INFO,
getString("okconfig"),
getString("loggingconfigExp"));
} else if (lobj instanceof String) {
message = new Message(Reporter.ERROR,
(String) lobj,
getString("loggingconfigExp"));
} else {
message = new Message(Reporter.ERROR,
getString("accessexception"),
(Throwable) lobj,
getString("loggingconfigExp"));
}
}