envCheck.launch(null, gd, taskName("GetGroupLoginConfigs"));
if (lobj instanceof Throwable) {
handleUnexpectedSubtaskReturn(lobj, source);
return;
}
Message message;
ArrayList configs = (ArrayList) lobj;
if (configs.size() == 0) {
message = new Message(Reporter.WARNING,
getString("noconfigfiles"),
getString("loginConfigExp"));
Reporter.print(message, source);
}
for (int i = 0; i < configs.size(); i += 2) {
String errorMsg;
String desc = (String) configs.get(i + 1);
if (configs.get(i) instanceof URL) {
URL url = (URL) configs.get(i);
errorMsg = Util.checkURL(url, desc);
} else {
errorMsg = (String) configs.get(i);
}
if (errorMsg == null) {
message = new Message(Reporter.INFO,
getString("loginconfigOK"),
getString("loginConfigExp"));
} else {
message = new Message(Reporter.ERROR,
errorMsg,
getString("loginConfigExp"));
}
Reporter.print(message, source + " " + desc);
}
lobj = envCheck.launch(null, gd, taskName("CheckLoginConfigInit"));
if (lobj == null) {
message = new Message(Reporter.INFO,
getString("loginInitOK"),
getString("loginConfigExp"));
Reporter.print(message, source);
} else {
Throwable cause = ((Throwable) lobj).getCause();
if (cause instanceof IOException) {
message = new Message(Reporter.INFO,
getString("loginInitBad"),
cause,
getString("loginConfigExp"));
Reporter.print(message, source);
} else { // unexpected exception