Changeset 1134 for java/AEInstaller2-Updater
- Timestamp:
- Jun 6, 2020, 2:45:46 PM (4 years ago)
- Location:
- java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater/AEInstaller2Updater.java
r1078 r1134 5 5 import java.io.FileOutputStream; 6 6 import java.io.PrintStream; 7 import java.text.SimpleDateFormat; 8 import java.util.Date; 7 9 8 10 import javax.swing.JFrame; … … 13 15 import net.oni2.aeinstaller.updater.backend.Paths; 14 16 import net.oni2.aeinstaller.updater.gui.MainWin; 17 import net.oni2.platformtools.PlatformInformation; 15 18 16 19 /** … … 43 46 } 44 47 48 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 49 System.out.println("Time: " + sdf.format(new Date())); 50 System.out.println("Java: \"" 51 + System.getProperty("java.runtime.name") + "\" v. " 52 + System.getProperty("java.version") + " by \"" 53 + System.getProperty("java.vendor") + "\" (spec. " 54 + System.getProperty("java.specification.version") + ")"); 55 System.out.println("Java home: " + System.getProperty("java.home")); 56 System.out.println("Command: " 57 + System.getProperty("sun.java.command")); 58 System.out.println("PrefsPath: " + Paths.getPrefsPath()); 59 System.out.println("DownPath: " + Paths.getDownloadPath()); 60 System.out.println("TempPath: " + Paths.getTempPath()); 61 System.out.println("Platform: " + System.getProperty("os.name") + 62 " detected as " + PlatformInformation.getPlatform().toString()); 63 System.out.println("Architect: " 64 + PlatformInformation.getArchitecture()); 65 System.out.println(""); 66 45 67 if (Paths.getProxySettingsFilename().exists()) { 46 68 ProxySettings.deserializeFromFile(Paths.getProxySettingsFilename()); -
java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater/gui/MainWin.java
r1089 r1134 40 40 public MainWin() { 41 41 super("AEInstaller2 self updater"); 42 System.out.println("AEI2 updater version 1. 3");42 System.out.println("AEI2 updater version 1.4"); 43 43 setLayout(new BorderLayout(2, 4)); 44 44 … … 144 144 boolean showError = false; 145 145 146 int x = svn.checkSVN("http://svn.aei.oni2.net", 147 new File(Paths.getPrefsPath(), "bin")); 146 File wcDir = new File(Paths.getPrefsPath(), "bin"); 147 System.out.println("AEI WC path: " + wcDir.getAbsolutePath()); 148 int x = svn.checkSVN("http://svn.aei.oni2.net", wcDir); 148 149 switch (x) { 149 150 case -2: // No repos connection … … 169 170 } 170 171 showError = !svn.updateWC("http://svn.aei.oni2.net", 171 new File(Paths.getPrefsPath(), "bin"),172 wcDir, 172 173 new SVNUpdateListener() { 173 174 public void statusUpdate(int done, int total) {
Note:
See TracChangeset
for help on using the changeset viewer.