[jbosscache-commits] JBoss Cache SVN: r7410 - core/trunk/src/test/java/org/jboss/cache.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Jan 8 11:05:26 EST 2009


Author: mircea.markus
Date: 2009-01-08 11:05:26 -0500 (Thu, 08 Jan 2009)
New Revision: 7410

Modified:
   core/trunk/src/test/java/org/jboss/cache/ResourceCleanupTest.java
Log:


Modified: core/trunk/src/test/java/org/jboss/cache/ResourceCleanupTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/ResourceCleanupTest.java	2009-01-08 15:29:45 UTC (rev 7409)
+++ core/trunk/src/test/java/org/jboss/cache/ResourceCleanupTest.java	2009-01-08 16:05:26 UTC (rev 7410)
@@ -34,10 +34,17 @@
    public void printEnvInformation()
    {
       System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~ ENVIRONMENT INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~");
-      System.out.println("bind.address = " + System.getProperty("bind.address"));
+      String bindAddress = System.getProperty("bind.address");
+      System.out.println("bind.address = " + bindAddress);
+      //todo for some funny reasons MVN ignores bind.address passed in. This is a hack..
+      if (bindAddress == null)
+      {
+         System.out.println("Setting bind.address to 127.0.0.1 as it is missing!!!");
+//         System.setProperty("bind.address","127.0.0.1");
+      }
       System.out.println("java.vm.version = " + System.getProperty("java.vm.version"));
       System.out.println("os.name = " + System.getProperty("java.vm.version"));
-      System.out.println("os.version = " + System.getProperty("java.vm.version"));
+      System.out.println("os.version = " + System.getProperty("os.version"));
       System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~ ENVIRONMENT INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~");
    }
 




More information about the jbosscache-commits mailing list