1 21 22 package org.jsmtpd; 23 24 28 public class Launcher { 29 30 public static void main(String [] args) { 31 try { 32 GetOpt options = new GetOpt (args); 33 Controler controler = new Controler(); 34 if (options.containsKey("xmlPluginFile")) 35 controler.setXmlPluginFileName((String )options.get("xmlPluginFile")); 36 if (options.containsKey("configFile")) 37 controler.setConfigFile((String )options.get("configFile")); 38 controler.startup(); 39 } catch (OptException e) { 40 System.out.println("Sorry, can't startup Jsmtpd. I do not understaind the command line options you passed me"); 41 System.out.println("Please use a '-optionName value' syntax"); 42 } 43 44 } 45 } | Popular Tags |