org.daisy.pipeline.updater.gui..Main.swp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of updater-gui Show documentation
Show all versions of updater-gui Show documentation
A lightweight updater gui for windows
b0VIM 7.4 ?n?VK? cq javi disorder ~javi/daisy/pipeline-updater-gui/src/main/java/org/daisy/pipeline/updater/gui/Main.java utf-8
3210 #"! U tp = ad h x = ? ? ? ? ? z 9 8 ? ? ? ? g L K # ?
?
?
?
?
?
? ? ? ? A ? ? 5 ' & ?
?
?
?
?
R
? ? ? 4 ? } o n m B ? ? k ( ? ? ? z x }}}}}}} } primaryStage.show(); primaryStage.setScene(new MainWindow().getScene()); primaryStage.setTitle("Pipeline 2 updater"); } System.setProperty(key,config.getString(key)); System.out.println("Setting property "+key+": "+config.getString(key)); String key= keys.next(); for ( Iterator keys = config.getKeys(); keys.hasNext();){ //copy the pipeline properties } throw new RuntimeException("Error loading configuration " + e.getMessage(),e); } catch (ConfigurationException e) { config.load(); config.addProperty("org.daisy.pipeline.home",pipelineHome); //} //config.addProperty(prop,System.getProperties().getProperty(prop)); //for(String prop:System.getProperties().stringPropertyNames()){ config = new PropertiesConfiguration(propsFileName); try { PropertiesConfiguration config; String propsFileName= pipelineHome+"\\etc\\system.properties"; } throw new RuntimeException("Couldn't find the pipeline home in the registry"); if (Strings.isNullOrEmpty(pipelineHome)){ WinReg.HKEY_LOCAL_MACHINE, "SOFTWARE\\DAISY Pipeline 2", "Pipeline2Home"); String pipelineHome = Advapi32Util.registryGetStringValue( //} //throw new RuntimeException("org.daisy.properties is not set"); //if (!propsFileName.isPresent()){ //Optional propsFileName = Optional.fromNullable(System.getProperty("org.daisy.properties",null)); public void start(final Stage primaryStage) { @Override } launch(args); public static void main(String[] args) { public class Main extends Application { import javafx.stage.Stage; import javafx.application.Application; import com.sun.jna.platform.win32.WinReg; import com.sun.jna.platform.win32.Advapi32Util; import com.google.common.base.Strings; import com.google.common.base.Optional; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commons.configuration.ConfigurationException; import java.util.Iterator; package org.daisy.pipeline.updater.gui;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy