jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r704480 - in /jackrabbit/sandbox/jackrabbit-test-harness/compatibility: base/src/main/java/org/apache/jackrabbit/harness/compatibility/ create10/src/test/java/org/apache/jackrabbit/harness/compatibility/ create11/src/test/java/org/apache/ja...
Date Tue, 14 Oct 2008 11:44:43 GMT
Author: jukka
Date: Tue Oct 14 04:44:42 2008
New Revision: 704480

URL: http://svn.apache.org/viewvc?rev=704480&view=rev
Log:
test-harness: Added a Jackrabbit 1.4 data store configuration to the compatibility test suite

Also reorganized the base test code to make it easier to extend.

Added:
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/datastore.xml
  (with props)
Modified:
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create11/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create12/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create13/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
    jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java?rev=704480&r1=704479&r2=704480&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
Tue Oct 14 04:44:42 2008
@@ -16,16 +16,27 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
+import static org.testng.AssertJUnit.assertEquals;
+import static org.testng.AssertJUnit.assertFalse;
+import static org.testng.AssertJUnit.assertTrue;
+import static org.testng.AssertJUnit.fail;
+
 import java.io.ByteArrayInputStream;
 import java.io.File;
+import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.util.Arrays;
 import java.util.Calendar;
+import java.util.Random;
 
 import javax.jcr.Node;
+import javax.jcr.PathNotFoundException;
+import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
 import javax.jcr.Value;
+import javax.jcr.ValueFormatException;
 import javax.jcr.version.Version;
 import javax.jcr.version.VersionHistory;
 
@@ -34,10 +45,30 @@
 import org.apache.jackrabbit.core.RepositoryImpl;
 import org.apache.jackrabbit.core.config.RepositoryConfig;
 
-import static org.testng.AssertJUnit.*;
-
 public class AbstractRepositoryTest {
 
+    protected void doCreateRepositories(String name) throws Exception {
+        // Create a repository using the Jackrabbit default configuration
+        doCreateRepository(
+                name,
+                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+
+        // Create repositories for any special configurations included
+        File directory = new File(new File("src", "test"), "resources");
+        File[] files = directory.listFiles();
+        if (files != null) {
+            Arrays.sort(files);
+            for (File file : files) {
+                String xml = file.getName();
+                if (file.isFile() && xml.endsWith(".xml")) {
+                    doCreateRepository(
+                            name + "-" + xml.substring(0, xml.length() - 4),
+                            FileUtils.openInputStream(file));
+                }
+            }
+        }
+    }
+
     /**
      * Creates a named test repository with the given configuration file.
      *
@@ -63,20 +94,25 @@
         }
 
         // Create the repository
-        RepositoryConfig config = RepositoryConfig.create(
-                configuration.getPath(), directory.getPath());
-        RepositoryImpl repository = RepositoryImpl.create(config);
         try {
-            Session session = repository.login(
-                    new SimpleCredentials("admin", "admin".toCharArray()));
+            RepositoryConfig config = RepositoryConfig.create(
+                    configuration.getPath(), directory.getPath());
+            RepositoryImpl repository = RepositoryImpl.create(config);
             try {
-                createTestData(session);
-                verifyTestData(session);
+                Session session = repository.login(
+                        new SimpleCredentials("admin", "admin".toCharArray()));
+                try {
+                    createTestData(session);
+                    verifyTestData(session);
+                } finally {
+                    session.logout();
+                }
             } finally {
-                session.logout();
+                repository.shutdown();
             }
-        } finally {
-            repository.shutdown();
+        } catch (RepositoryException e) {
+            e.printStackTrace();
+            fail("Create repository " + name);
         }
     }
 
@@ -89,63 +125,64 @@
     protected void doVerifyRepository(File directory) throws Exception {
         File configuration = new File(directory, "repository.xml");
 
-        RepositoryConfig config = RepositoryConfig.create(
-                configuration.getPath(), directory.getPath());
-        RepositoryImpl repository = RepositoryImpl.create(config);
         try {
-            Session session = repository.login(
-                    new SimpleCredentials("admin", "admin".toCharArray()));
+            RepositoryConfig config = RepositoryConfig.create(
+                    configuration.getPath(), directory.getPath());
+            RepositoryImpl repository = RepositoryImpl.create(config);
             try {
-                verifyTestData(session);
+                Session session = repository.login(
+                        new SimpleCredentials("admin", "admin".toCharArray()));
+                try {
+                    verifyTestData(session);
+                } finally {
+                    session.logout();
+                }
             } finally {
-                session.logout();
+                repository.shutdown();
             }
-        } finally {
-            repository.shutdown();
+        } catch (RepositoryException e) {
+            e.printStackTrace();
+            fail("Access repository " + directory.getName());
         }
     }
 
     private void createTestData(Session session) throws Exception {
-        Calendar calendar = Calendar.getInstance();
-        calendar.setTimeInMillis(1234567890);
+        Node root = session.getRootNode();
+        Node test = root.addNode("test", "nt:unstructured");
+        root.save();
+
+        Node versionable = createVersionable(test);
+        createProperties(test, versionable);
+    }
 
+    private void verifyTestData(Session session) throws Exception {
         Node root = session.getRootNode();
 
-        Node test = root.addNode("test", "nt:unstructured");
+        assertTrue(root.hasNode("test"));
+        Node test = root.getNode("test");
 
-        Node versionable = test.addNode("versionable", "nt:unstructured");
+        Node versionable = verifyVersionable(test);
+        verifyProperties(test, versionable);
+    }
+
+    private Node createVersionable(Node parent) throws RepositoryException {
+        Node versionable = parent.addNode("versionable", "nt:unstructured");
         versionable.addMixin("mix:versionable");
         versionable.setProperty("foo", "A");
-        session.save();
+        parent.save();
 
         VersionHistory history = versionable.getVersionHistory();
         Version versionA = versionable.checkin();
         history.addVersionLabel(versionA.getName(), "labelA", false);
         versionable.checkout();
         versionable.setProperty("foo", "B");
-        session.save();
+        parent.save();
         Version versionB = versionable.checkin();
         history.addVersionLabel(versionB.getName(), "labelB", false);
-
-        Node properties = test.addNode("properties", "nt:unstructured");
-        properties.setProperty("boolean", true);
-        properties.setProperty("date", calendar);
-        properties.setProperty("double", 0.123456789);
-        properties.setProperty("long", 1234567890);
-        properties.setProperty("reference", versionable);
-        properties.setProperty("string", "test");
-        properties.setProperty("multiple", new String[] { "a", "b", "c" });
-        properties.setProperty("binary", new ByteArrayInputStream(
-                new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }));
-        session.save();
+        return versionable;
     }
 
-    private void verifyTestData(Session session) throws Exception {
-        Node root = session.getRootNode();
-
-        assertTrue(root.hasNode("test"));
-        Node test = root.getNode("test");
-
+    private Node verifyVersionable(Node test) throws RepositoryException {
         assertTrue(test.hasNode("versionable"));
         Node versionable = test.getNode("versionable");
         assertTrue(versionable.isNodeType("nt:unstructured"));
@@ -162,13 +199,39 @@
         assertEquals("A", versionable.getProperty("foo").getString());
         versionable.restore(versionB, true);
         assertEquals("B", versionable.getProperty("foo").getString());
+        return versionable;
+    }
+
+    private void createProperties(Node parent, Node reference)
+            throws RepositoryException {
+        Node properties = parent.addNode("properties", "nt:unstructured");
+        properties.setProperty("boolean", true);
+        properties.setProperty("double", 0.123456789);
+        properties.setProperty("long", 1234567890);
+        properties.setProperty("reference", reference);
+        properties.setProperty("string", "test");
+
+        properties.setProperty("multiple", new String[] { "a", "b", "c" });
 
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTimeInMillis(1234567890);
+        properties.setProperty("date", calendar);
+
+        byte[] binary = new byte[100 * 1000];
+        new Random(1234567890).nextBytes(binary);
+        properties.setProperty("binary", new ByteArrayInputStream(binary));
+
+        parent.save();
+    }
+
+    private void verifyProperties(Node test, Node versionable)
+            throws RepositoryException, PathNotFoundException,
+            ValueFormatException, IOException {
         assertTrue(test.hasNode("properties"));
         Node properties = test.getNode("properties");
         assertTrue(properties.isNodeType("nt:unstructured"));
+
         assertEquals(true, properties.getProperty("boolean").getBoolean());
-        Calendar calendar = properties.getProperty("date").getDate();
-        assertEquals(1234567890, calendar.getTimeInMillis());
         assertEquals(0.123456789, properties.getProperty("double").getDouble());
         assertEquals(1234567890, properties.getProperty("long").getLong());
         Node reference = properties.getProperty("reference").getNode();
@@ -181,19 +244,14 @@
         assertEquals("b", multiple[1].getString());
         assertEquals("c", multiple[2].getString());
 
+        Calendar calendar = properties.getProperty("date").getDate();
+        assertEquals(1234567890, calendar.getTimeInMillis());
+
         InputStream stream = properties.getProperty("binary").getStream();
         try {
-            assertEquals(0, stream.read());
-            assertEquals(1, stream.read());
-            assertEquals(2, stream.read());
-            assertEquals(3, stream.read());
-            assertEquals(4, stream.read());
-            assertEquals(5, stream.read());
-            assertEquals(6, stream.read());
-            assertEquals(7, stream.read());
-            assertEquals(8, stream.read());
-            assertEquals(9, stream.read());
-            assertEquals(-1, stream.read());
+            byte[] binary = new byte[100 * 1000];
+            new Random(1234567890).nextBytes(binary);
+            assertEquals(binary, IOUtils.toByteArray(stream));
         } finally {
             stream.close();
         }

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java?rev=704480&r1=704479&r2=704480&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create10/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
Tue Oct 14 04:44:42 2008
@@ -16,16 +16,13 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
-import org.apache.jackrabbit.core.RepositoryImpl;
 import org.testng.annotations.Test;
 
 public class CreateRepositoryTest extends AbstractRepositoryTest {
 
     @Test
-    public void createRepository() throws Exception {
-        doCreateRepository(
-                "jackrabbit-1.0",
-                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+    public void createRepositories() throws Exception {
+        doCreateRepositories("jackrabbit-1.0");
     }
 
 }

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create11/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create11/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java?rev=704480&r1=704479&r2=704480&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create11/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create11/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
Tue Oct 14 04:44:42 2008
@@ -16,16 +16,13 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
-import org.apache.jackrabbit.core.RepositoryImpl;
 import org.testng.annotations.Test;
 
 public class CreateRepositoryTest extends AbstractRepositoryTest {
 
     @Test
-    public void createRepository() throws Exception {
-        doCreateRepository(
-                "jackrabbit-1.1",
-                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+    public void createRepositories() throws Exception {
+        doCreateRepositories("jackrabbit-1.1");
     }
 
 }

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create12/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create12/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java?rev=704480&r1=704479&r2=704480&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create12/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create12/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
Tue Oct 14 04:44:42 2008
@@ -16,16 +16,13 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
-import org.apache.jackrabbit.core.RepositoryImpl;
 import org.testng.annotations.Test;
 
 public class CreateRepositoryTest extends AbstractRepositoryTest {
 
     @Test
-    public void createRepository() throws Exception {
-        doCreateRepository(
-                "jackrabbit-1.2",
-                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+    public void createRepositories() throws Exception {
+        doCreateRepositories("jackrabbit-1.2");
     }
 
 }

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create13/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create13/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java?rev=704480&r1=704479&r2=704480&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create13/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create13/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
Tue Oct 14 04:44:42 2008
@@ -16,16 +16,13 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
-import org.apache.jackrabbit.core.RepositoryImpl;
 import org.testng.annotations.Test;
 
 public class CreateRepositoryTest extends AbstractRepositoryTest {
 
     @Test
-    public void createRepository() throws Exception {
-        doCreateRepository(
-                "jackrabbit-1.3",
-                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+    public void createRepositories() throws Exception {
+        doCreateRepositories("jackrabbit-1.3");
     }
 
 }

Modified: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java?rev=704480&r1=704479&r2=704480&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/java/org/apache/jackrabbit/harness/compatibility/CreateRepositoryTest.java
Tue Oct 14 04:44:42 2008
@@ -16,16 +16,13 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
-import org.apache.jackrabbit.core.RepositoryImpl;
 import org.testng.annotations.Test;
 
 public class CreateRepositoryTest extends AbstractRepositoryTest {
 
     @Test
-    public void createRepository() throws Exception {
-        doCreateRepository(
-                "jackrabbit-1.4",
-                RepositoryImpl.class.getResourceAsStream("repository.xml"));
+    public void createRepositories() throws Exception {
+        doCreateRepositories("jackrabbit-1.4");
     }
 
 }

Added: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/datastore.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/datastore.xml?rev=704480&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/datastore.xml
(added)
+++ jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/datastore.xml
Tue Oct 14 04:44:42 2008
@@ -0,0 +1,126 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.4//EN"
+                            "http://jackrabbit.apache.org/dtd/repository-1.4.dtd">
+<!-- Example Repository Configuration File -->
+<Repository>
+    <!--
+        virtual file system where the repository stores global state
+        (e.g. registered namespaces, custom node types, etc.)
+    -->
+    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+        <param name="path" value="${rep.home}/repository"/>
+    </FileSystem>
+
+    <!--
+        security configuration
+    -->
+    <Security appName="Jackrabbit">
+        <!--
+            access manager:
+            class: FQN of class implementing the AccessManager interface
+        -->
+        <AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager">
+            <!-- <param name="config" value="${rep.home}/access.xml"/> -->
+        </AccessManager>
+
+        <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
+           <!-- anonymous user name ('anonymous' is the default value) -->
+           <param name="anonymousId" value="anonymous"/>
+           <!--
+              default user name to be used instead of the anonymous user
+              when no login credentials are provided (unset by default)
+           -->
+           <!-- <param name="defaultUserId" value="superuser"/> -->
+        </LoginModule>
+    </Security>
+
+    <!--
+        location of workspaces root directory and name of default workspace
+    -->
+    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
+    <!--
+        workspace configuration template:
+        used to create the initial workspace if there's no workspace yet
+    -->
+    <Workspace name="${wsp.name}">
+        <!--
+            virtual file system of the workspace:
+            class: FQN of class implementing the FileSystem interface
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${wsp.home}"/>
+        </FileSystem>
+        <!--
+            persistence manager of the workspace:
+            class: FQN of class implementing the PersistenceManager interface
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
+          <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
+          <param name="schemaObjectPrefix" value="${wsp.name}_"/>
+        </PersistenceManager>
+        <!--
+            Search index and the file system it uses.
+            class: FQN of class implementing the QueryHandler interface
+        -->
+        <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+            <param name="path" value="${wsp.home}/index"/>
+            <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
+            <param name="extractorPoolSize " value="2"/>
+            <param name="supportHighlighting" value="true"/>
+        </SearchIndex>
+    </Workspace>
+
+    <!--
+        Configures the versioning
+    -->
+    <Versioning rootPath="${rep.home}/version">
+        <!--
+            Configures the filesystem to use for versioning for the respective
+            persistence manager
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${rep.home}/version" />
+        </FileSystem>
+
+        <!--
+            Configures the persistence manager to be used for persisting version state.
+            Please note that the current versioning implementation is based on
+            a 'normal' persistence manager, but this could change in future
+            implementations.
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
+          <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
+          <param name="schemaObjectPrefix" value="version_"/>
+        </PersistenceManager>
+    </Versioning>
+
+    <!--
+        Search index for content that is shared repository wide
+        (/jcr:system tree, contains mainly versions)
+    -->
+    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+        <param name="path" value="${rep.home}/repository/index"/>
+        <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
+        <param name="extractorPoolSize " value="2"/>
+        <param name="supportHighlighting" value="true"/>
+    </SearchIndex>
+
+    <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
+
+</Repository>

Propchange: jackrabbit/sandbox/jackrabbit-test-harness/compatibility/create14/src/test/resources/datastore.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message