[hornetq-commits] JBoss hornetq SVN: r10660 - in trunk/tests/integration-tests: src/test/java/org/hornetq/tests/integration/journal and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri May 13 09:59:53 EDT 2011


Author: borges
Date: 2011-05-13 09:59:52 -0400 (Fri, 13 May 2011)
New Revision: 10660

Modified:
   trunk/tests/integration-tests/pom.xml
   trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java
Log:
Set java.library.path in the correct way (remove hack)

Modified: trunk/tests/integration-tests/pom.xml
===================================================================
--- trunk/tests/integration-tests/pom.xml	2011-05-13 13:59:13 UTC (rev 10659)
+++ trunk/tests/integration-tests/pom.xml	2011-05-13 13:59:52 UTC (rev 10660)
@@ -106,12 +106,7 @@
                   <exclude>**/cluster/failover/Remote*.java</exclude>
                   <exclude>**/failover/remote/**.java</exclude>
                </excludes>
-          <systemProperties>
-            <property>
-              <name>java.library.path</name>
-              <value>${user.dir}/distribution/hornetq/src/main/resources/bin</value>
-            </property>
-          </systemProperties>
+              <argLine>-Djava.library.path=${user.dir}/distribution/hornetq/src/main/resources/bin</argLine>
          </configuration>
          </plugin>
          <plugin>

Modified: trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java
===================================================================
--- trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java	2011-05-13 13:59:13 UTC (rev 10659)
+++ trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java	2011-05-13 13:59:52 UTC (rev 10660)
@@ -14,7 +14,6 @@
 package org.hornetq.tests.integration.journal;
 
 import java.io.File;
-import java.lang.reflect.Field;
 import java.nio.ByteBuffer;
 import java.util.List;
 import java.util.concurrent.atomic.AtomicLong;
@@ -131,10 +130,6 @@
       File file = new File(getTestDir());
       deleteDirectory(file);
       file.mkdir();
-
-   	  Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
-   	  fieldSysPath.setAccessible(true);
-   	  fieldSysPath.set(null, null);
    }
 
    // Private -------------------------------------------------------



More information about the hornetq-commits mailing list