1 21 22 package com.izforge.izpack.installer; 23 24 import java.util.Date ; 25 26 import com.izforge.izpack.util.Debug; 27 import com.izforge.izpack.util.StringTool; 28 29 34 public class Installer 35 { 36 37 42 public static void main(String [] args) 43 { 44 Debug.log(" - Logger initialized at '"+ new Date ( System.currentTimeMillis() )+ "'."); 45 46 Debug.log(" - commandline args: " + StringTool.stringArrayToSpaceSeparatedString(args) ); 47 48 if (System.getProperty("mrj.version") != null) 50 { 51 System.setProperty("com.apple.mrj.application.apple.menu.about.name", "IzPack"); 52 System.setProperty("com.apple.mrj.application.growbox.intrudes", "false"); 53 System.setProperty("com.apple.mrj.application.live-resize", "true"); 54 } 55 56 try 57 { 58 if (args.length == 0) 59 { 60 Class.forName("com.izforge.izpack.installer.GUIInstaller").newInstance(); 63 } 64 else 65 { 66 AutomatedInstaller ai = new AutomatedInstaller(args[0]); 67 ai.doInstall(); 69 } 70 } 71 catch (Exception e) 72 { 73 System.err.println("- ERROR -"); 74 System.err.println(e.toString()); 75 e.printStackTrace(); 76 System.exit(1); 77 } 78 } 79 80 } 81 | Popular Tags |