[Schmitzm-commits] r2347 - trunk/schmitzm-core/src/main/java/de/schmitzm/io
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Tue Jun 11 01:38:43 CEST 2013
Author: mojays
Date: 2013-06-11 01:38:43 +0200 (Tue, 11 Jun 2013)
New Revision: 2347
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtilBasic.java
Log:
IOUtilBasic: Test with progress dialog
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtilBasic.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtilBasic.java 2013-06-10 15:17:58 UTC (rev 2346)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/io/IOUtilBasic.java 2013-06-10 23:38:43 UTC (rev 2347)
@@ -108,6 +108,15 @@
* </ul>
*/
public static void main(String[] arg) throws Exception {
+//TEST
+// arg = new String[] {"EXEC",
+// "4000",
+// "D:\\java\\Majordomo\\majordomomanager-trunk\\dist\\majordomo-1.0-SNAPSHOT\\majordomo-manager-1.0.exe",
+// "/L",
+// "de"
+// };
+
+
if (arg.length == 0) {
System.err.println("Missing arguments.");
return;
@@ -135,7 +144,17 @@
return;
}
long delay = Integer.parseInt(arg[1]);
+// Funktioniert nicht, da StatusDialog SwingUtil nutzt, das wiederum z.B. Log4J
+// referenziert, also nicht pur SCHMITZM-CORE!
+// final StatusDialog status = new StatusDialog(null, "Please wait...", null);
+// SwingUtilities.invokeLater( new Runnable() {
+// @Override
+// public void run() {
+// status.setVisible(true);
+// }
+// });
Thread.sleep(delay);
+// status.setVisible(false);
String command = "";
for (int i=2; i<arg.length; i++)
command += " " + maskPath(arg[i]);
@@ -143,7 +162,7 @@
} else {
System.err.println("Unknown function: " + func);
}
-
+// System.exit(0);
}
}
More information about the Schmitzm-commits
mailing list