activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r358602 - /incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java
Date Thu, 22 Dec 2005 18:20:54 GMT
Author: chirino
Date: Thu Dec 22 10:20:51 2005
New Revision: 358602

URL: http://svn.apache.org/viewcvs?rev=358602&view=rev
Log:
the login.config is at the root of the resouces dir.  so use the class's classload to get
the resource.

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java?rev=358602&r1=358601&r2=358602&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/activemq/security/SimpleSecurityBrokerSystemTest.java
Thu Dec 22 10:20:51 2005
@@ -121,7 +121,7 @@
     static {
         String path = System.getProperty("java.security.auth.login.config");
         if( path == null ) {
-            URL resource = SimpleSecurityBrokerSystemTest.class.getResource("login.config");
+            URL resource = SimpleSecurityBrokerSystemTest.class.getClassLoader().getResource("login.config");
             if( resource!=null ) {
                 path = resource.getFile();
                 System.setProperty("java.security.auth.login.config", path);



Mime
View raw message