jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r450894 - in /jackrabbit/trunk/contrib/spi/client/src/test: config/repositoryStubImpl.properties java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
Date Thu, 28 Sep 2006 15:23:44 GMT
Author: angela
Date: Thu Sep 28 08:23:43 2006
New Revision: 450894

URL: http://svn.apache.org/viewvc?view=rev&rev=450894
Log:
work in progress

- retrieve default workspace name from config

Modified:
    jackrabbit/trunk/contrib/spi/client/src/test/config/repositoryStubImpl.properties
    jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java

Modified: jackrabbit/trunk/contrib/spi/client/src/test/config/repositoryStubImpl.properties
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/config/repositoryStubImpl.properties?view=diff&rev=450894&r1=450893&r2=450894
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/config/repositoryStubImpl.properties (original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/config/repositoryStubImpl.properties Thu
Sep 28 08:23:43 2006
@@ -7,6 +7,7 @@
 
 # repository specific configuration
 org.apache.jackrabbit.jcr2spi.repository.url=http://localhost:4302/jackrabbit/server/
+org.apache.jackrabbit.jcr2spi.workspace.name=default
 
 
 # credential configuration

Modified: jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java?view=diff&rev=450894&r1=450893&r2=450894
==============================================================================
--- jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
(original)
+++ jackrabbit/trunk/contrib/spi/client/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPIRepositoryStub.java
Thu Sep 28 08:23:43 2006
@@ -41,6 +41,10 @@
      * Property for the repository url
      */
     public static final String PROP_REPOSITORY_URL = "org.apache.jackrabbit.jcr2spi.repository.url";
+    /**
+     * Property for the default workspace name
+     */
+    public static final String PROP_WORKSPACE_NAME = "org.apache.jackrabbit.jcr2spi.workspace.name";
 
     static {
         PropertyConfigurator.configure(JCR2SPIRepositoryStub.class.getClassLoader().getResource("log4j.properties"));
@@ -74,6 +78,11 @@
 
                     public ValueFactory getValueFactory() throws RepositoryException {
                         return vFactory;
+                    }
+
+                    public String getDefaultWorkspaceName() {
+                        String name = environment.getProperty(PROP_WORKSPACE_NAME);
+                        return name;
                     }
                 };
 



Mime
View raw message