progress
This commit is contained in:
parent
90f4ebf88d
commit
289c8e00c4
|
@ -24,7 +24,7 @@ public class BundleUtil {
|
||||||
return null; // just paranoia check
|
return null; // just paranoia check
|
||||||
return fullName;
|
return fullName;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.err.println(new Date() + ": Error reading " + BUNDLE_NAME_FILE);
|
System.err.println(new Date() + ": BundleUtil: Error reading " + BUNDLE_NAME_FILE);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,9 @@ public class PersistentConfiguration {
|
||||||
/**
|
/**
|
||||||
* interesting things are happening while this is executed under TS as a plugin so we need non-default CL parameter
|
* interesting things are happening while this is executed under TS as a plugin so we need non-default CL parameter
|
||||||
*/
|
*/
|
||||||
XMLDecoder e = new XMLDecoder(inputStream, null, null, PersistentConfiguration.class.getClassLoader());
|
XMLDecoder e = new XMLDecoder(inputStream, null, e1 -> {
|
||||||
|
// empty not null exception listener replaces default exception listener which prints to System.err
|
||||||
|
}, PersistentConfiguration.class.getClassLoader());
|
||||||
config = (Map<String, Object>) e.readObject();
|
config = (Map<String, Object>) e.readObject();
|
||||||
e.close();
|
e.close();
|
||||||
System.out.println("Console configuration from " + CONFIG_FILE_NAME);
|
System.out.println("Console configuration from " + CONFIG_FILE_NAME);
|
||||||
|
|
Loading…
Reference in New Issue