}
public Launcher(Properties properties) throws Exception {
this.properties = properties;
System.getProperties().putAll(properties);
this.parms = new LauncherConstants(properties);
out = System.err;
trace("inited runbundles=%s activators=%s timeout=%s", parms.runbundles, parms.activators, parms.timeout);
watchdog = new TimerTask() {
long begin = propertiesFile.lastModified();
public void run() {
if (begin < propertiesFile.lastModified()) {
try {
FileInputStream in = new FileInputStream(propertiesFile);
Properties properties = new Properties();
try {
properties.load(in);
} finally {
in.close();
}
parms = new LauncherConstants(properties);
update();
} catch (Exception e) {
error("Error in updating the framework from the properties: %s", e);
}
begin = propertiesFile.lastModified();