jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r390666 - /jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TestRepository.java
Date Sat, 01 Apr 2006 13:19:55 GMT
Author: jukka
Date: Sat Apr  1 05:19:52 2006
New Revision: 390666

URL: http://svn.apache.org/viewcvs?rev=390666&view=rev
Log:
1.0: Merged revision 390660 (and 390661): JCR-368: Fixed a problem with the TestRepository
only working when the test-repository.xml configuration file was located in the classpath
root.

Modified:
    jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TestRepository.java

Modified: jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TestRepository.java
URL: http://svn.apache.org/viewcvs/jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TestRepository.java?rev=390666&r1=390665&r2=390666&view=diff
==============================================================================
--- jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TestRepository.java
(original)
+++ jackrabbit/branches/1.0/jackrabbit/src/main/java/org/apache/jackrabbit/core/TestRepository.java
Sat Apr  1 05:19:52 2006
@@ -71,8 +71,8 @@
     public static synchronized Repository getInstance() throws RepositoryException {
         try {
             if (instance == null) {
-                ClassLoader loader = TestRepository.class.getClassLoader();
-                InputStream xml = loader.getResourceAsStream(CONF_RESOURCE);
+                InputStream xml =
+                    TestRepository.class.getResourceAsStream(CONF_RESOURCE);
                 String home = System.getProperty(HOME_PROPERTY, HOME_DEFAULT);
                 RepositoryConfig config = RepositoryConfig.create(xml, home);
                 instance = new TransientRepository(config);



Mime
View raw message