Author: ozizka(a)redhat.com
Date: 2009-02-04 15:27:47 -0500 (Wed, 04 Feb 2009)
New Revision: 136
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java
Log:
Adding listSystemProperties to DebugUtils.java - to see what properties Hudson passes
through Maven plugin
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java 2009-02-04 17:53:45
UTC (rev 135)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/DebugUtils.java 2009-02-04 20:27:47
UTC (rev 136)
@@ -6,6 +6,9 @@
import java.io.FileWriter;
import java.io.IOException;
import java.nio.channels.FileChannel;
+import java.util.Properties;
+import java.util.SortedMap;
+import java.util.TreeMap;
/**
*
@@ -20,10 +23,6 @@
}
-
-
-
-
public static void copyFile( String sFromPath, String sToPath ) throws IOException {
FileChannel in = new FileInputStream(sFromPath).getChannel();
@@ -40,21 +39,25 @@
}
-}
+ /**
+ * Lists system properties.
+ */
+ public static void listSystemProperties(){
+ Properties properties = System.getProperties();
-/*
+ SortedMap<String, String> map = new TreeMap<String, String>();
+ for ( String property : properties.stringPropertyNames()) {
+ map.put( (String)property, properties.getProperty(property) );
+ }
+ for ( String property : map.keySet() ) {
+ System.out.println(property + ":
'"+properties.getProperty(property)+"'");
+ }
+ }
- DebugUtils.copyFile("/home/ondra/work/JOPRembedded/emb-ds.xml",
file.getAbsolutePath());///
-
-
-
-
-
-
- */
+}
Show replies by date