- Timestamp:
- Jun 24, 2013, 8:06:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
r857 r886 5 5 import java.io.FileNotFoundException; 6 6 import java.io.IOException; 7 import java.io.PrintStream;8 7 import java.lang.reflect.InvocationTargetException; 9 8 import java.lang.reflect.Method; … … 11 10 import java.net.URL; 12 11 import java.net.URLClassLoader; 12 import java.text.SimpleDateFormat; 13 import java.util.Date; 13 14 import java.util.ResourceBundle; 14 15 … … 24 25 import net.oni2.SettingsManager; 25 26 import net.oni2.aeinstaller.backend.CaseInsensitiveFile; 27 import net.oni2.aeinstaller.backend.LogPrintStream; 26 28 import net.oni2.aeinstaller.backend.Paths; 27 29 import net.oni2.aeinstaller.backend.RuntimeOptions; … … 127 129 RuntimeOptions.setUseWorkingDir(true); 128 130 } 131 LogPrintStream lps = LogPrintStream.getInstance(); 129 132 if (!RuntimeOptions.isDebug()) { 130 133 try { 131 PrintStream ps = new PrintStream(new File(Paths.getPrefsPath(), 132 "aei_output.log")); 133 System.setOut(ps); 134 System.setErr(ps); 134 lps.setFile(new File(Paths.getPrefsPath(), "aei_output.log")); 135 135 } catch (FileNotFoundException e1) { 136 136 e1.printStackTrace(); 137 } catch (IOException e) { 138 e.printStackTrace(); 137 139 } 138 140 } … … 142 144 143 145 SettingsManager.deserializeFromFile(Paths.getSettingsFilename()); 144 146 145 147 if (Paths.getProxySettingsFilename().exists()) { 146 148 ProxySettings.deserializeFromFile(Paths.getProxySettingsFilename()); 147 149 } 148 150 149 151 initBundles(); 150 152 … … 181 183 JFrame.setDefaultLookAndFeelDecorated(true); 182 184 185 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 183 186 System.out.println(basicBundle.getString("appname") 184 187 + basicBundle.getString("appversion")); 188 System.out.println("Time: " + sdf.format(new Date())); 189 System.out.println("Java: \"" 190 + System.getProperty("java.runtime.name") + "\" v. " 191 + System.getProperty("java.version") + " by \"" 192 + System.getProperty("java.vendor") + "\" (spec. " 193 + System.getProperty("java.specification.version") + ")"); 194 System.out.println("Java home: " + System.getProperty("java.home")); 195 System.out.println("Command: " 196 + System.getProperty("sun.java.command")); 185 197 System.out.println("JarPath: " + Paths.getJarPath()); 186 198 System.out.println("PrefsPath: " + Paths.getPrefsPath());
Note:
See TracChangeset
for help on using the changeset viewer.