[Jdvb-cvs] jdvb-server/src/uk/midearth/dvb/client ClientGUI.java,1.3,1.4
Status: Inactive
Brought to you by:
hundalz
|
From: pinder <hu...@us...> - 2006-02-25 15:19:59
|
Update of /cvsroot/jdvb/jdvb-server/src/uk/midearth/dvb/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3917/src/uk/midearth/dvb/client Modified Files: ClientGUI.java Log Message: added start/stop scripts no more commands line params. all use -Dprops.filename Index: ClientGUI.java =================================================================== RCS file: /cvsroot/jdvb/jdvb-server/src/uk/midearth/dvb/client/ClientGUI.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ClientGUI.java 19 Feb 2006 22:18:37 -0000 1.3 --- ClientGUI.java 25 Feb 2006 15:19:51 -0000 1.4 *************** *** 5,8 **** --- 5,9 ---- import org.apache.log4j.Logger; + import uk.midearth.dvb.Constants; import uk.midearth.dvb.confParser.Configurator; *************** *** 146,156 **** public static void main(String[] argv) { try { ! if (argv.length != 1) { ! LOG.error("ClientGUI usage:"); ! LOG.error(" java ClientGUI [server config file]"); System.exit(1); } ! Configurator.load(argv[0]); SwingUtilities.invokeLater(new Runnable() { --- 147,164 ---- public static void main(String[] argv) { try { ! // if (argv.length != 1) { ! // LOG.error("ClientGUI usage:"); ! // LOG.error(" java ClientGUI [server config file]"); ! // System.exit(1); ! // } ! ! String propsFilename = System.getProperty(Constants.PROPS_FILENAME); ! ! if (propsFilename == null) { ! LOG.error("Please define a property file using -Dprops.filename=<filename>"); System.exit(1); } ! Configurator.load(propsFilename); SwingUtilities.invokeLater(new Runnable() { *************** *** 160,164 **** }); ! String configFilename = argv[0]; log("Working on " + configFilename); client = new ClientRMI(); --- 168,172 ---- }); ! String configFilename = propsFilename; log("Working on " + configFilename); client = new ClientRMI(); |