You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/03/19 13:40:22 UTC

svn commit: r925201 - /james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java

Author: norman
Date: Fri Mar 19 12:40:22 2010
New Revision: 925201

URL: http://svn.apache.org/viewvc?rev=925201&view=rev
Log:
use classpath to load config, hopefully this makes hudson a bit more happy... 

Modified:
    james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java

Modified: james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java?rev=925201&r1=925200&r2=925201&view=diff
==============================================================================
--- james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java (original)
+++ james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java Fri Mar 19 12:40:22 2010
@@ -19,7 +19,6 @@
 package org.apache.james.imap.functional.jcr;
 
 import java.io.File;
-import java.io.FileInputStream;
 
 import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.core.RepositoryImpl;
@@ -50,9 +49,10 @@ public class JCRHostSystem extends ImapH
     public JCRHostSystem() throws Exception {
 
         delete(new File(JACKRABBIT_HOME));
+        
         try {
             
-            RepositoryConfig config = RepositoryConfig.create(new InputSource(new FileInputStream("deployment/src/test/resources/test-repository.xml")), JACKRABBIT_HOME);
+            RepositoryConfig config = RepositoryConfig.create(new InputSource(this.getClass().getClassLoader().getResourceAsStream("test-repository.xml")), JACKRABBIT_HOME);
             repository =  RepositoryImpl.create(config);
 
             userManager = new InMemoryUserManager();



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org