final Collection<Dialog> dialogs = new HashSet<Dialog>();
private boolean isExit = false;
public static void main(final String[] args) {
final ModuleConfig cm = new ModuleConfigImpl();
cm.setName("Test"); //$NON-NLS-1$
cm.setVersion(new BigDecimal("0.92")); //$NON-NLS-1$
cm.setBuild(247);
cm.setCreated(HelperTime.getDate(2012, 5, 31, 8, 37, 0));
cm.setLanguage(Language.ENGLISH);
cm.setUUID(UUID.fromString("febb21fe-52e6-4776-bfd4-dcc0fd2cc074")); //$NON-NLS-1$
cm.addPerson(Constants.BOGATYR.getPersons().get(0)); //hopefully it's me :-)
cm.setJars(HelperCollection.getList("tyr-module-test-0.92.jar", "lib/jbusycomponent-1.2.2.jar", "lib/jxlayer-3.0.4.jar" /*, "lib/commons-0.2.jar"*/)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
cm.setModuleClass("net.laubenberger.tyr.module.test.TestImpl"); //$NON-NLS-1$
cm.setLocalizerBase("net/laubenberger/tyr/module/test/test"); //$NON-NLS-1$
cm.setLogo("net/laubenberger/tyr/module/test/icon/small/logo.png"); //$NON-NLS-1$
cm.setLogoLarge("net/laubenberger/tyr/module/test/icon/large/logo.png"); //$NON-NLS-1$
try {
cm.setUrl(new URL("http://dev.laubenberger.net/")); //$NON-NLS-1$
// cm.setUpdateLocation(new
// URL("file://User/slaubenberger/Desktop/test_update.xml"));
} catch (MalformedURLException ex) {
// should never happen!
log.error("URL invalid", ex); //$NON-NLS-1$
}
try {
HelperXml.serialize(new File(cm.getName() + FileType.CONFIGURATION.getExtension()), cm);
} catch (JAXBException ex) {
log.error("Could not write the configration file", ex); //$NON-NLS-1$
}
}