}
/** The version. */
- public static final Version VERSION = new Version("RC3", 0, 3, 1);
+ public static final Version VERSION = new Version(0, 3, 4);
/** The logger. */
private static final Logger logger = Logging.getLogger(SonePlugin.class);
/* create a configuration. */
Configuration oldConfiguration;
Configuration newConfiguration = null;
+ boolean firstStart = !new File("sone.properties").exists();
+ boolean newConfig = false;
try {
oldConfiguration = new Configuration(new MapConfigurationBackend(new File("sone.properties"), false));
newConfiguration = oldConfiguration;
} catch (ConfigurationException ce1) {
- logger.log(Level.INFO, "Could not load configuration file, trying plugin store…");
+ newConfig = true;
+ logger.log(Level.INFO, "Could not load configuration file, trying plugin store…", ce1);
try {
newConfiguration = new Configuration(new MapConfigurationBackend(new File("sone.properties"), true));
logger.log(Level.INFO, "Created new configuration file.");
} catch (ConfigurationException ce2) {
- logger.log(Level.SEVERE, "Could not create configuration file, using Plugin Store!");
+ logger.log(Level.SEVERE, "Could not create configuration file, using Plugin Store!", ce2);
}
try {
oldConfiguration = new Configuration(new PluginStoreConfigurationBackend(pluginRespirator));
core.setConfiguration(newConfiguration);
}
webInterface.start();
+ webInterface.setFirstStart(firstStart);
+ webInterface.setNewConfig(newConfig);
identityManager.start();
startupFailed = false;
} finally {