chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1404113 - in /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit: ./ src/main/webapp/WEB-INF/classes/ src/main/webapp/WEB-INF/classes/META-INF/ src/main/webapp/WEB-INF/classes/META-INF/services/ src/test/resources/
Date Wed, 31 Oct 2012 12:34:03 GMT
Author: mduerig
Date: Wed Oct 31 12:34:02 2012
New Revision: 1404113

URL: http://svn.apache.org/viewvc?rev=1404113&view=rev
Log:
CMIS-581: Create maven profiles for chemistry-opencmis-test-fit
Credits to Ivan Vasyliev for the patch

Added:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/readme.txt
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/javax.jcr.RepositoryFactory
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/org.modeshape.jcr.api.RepositoryFactory
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/my-repository-config.xml
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/resources/repository.xml
  (with props)
Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/repository.properties

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml?rev=1404113&r1=1404112&r2=1404113&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/pom.xml Wed
Oct 31 12:34:02 2012
@@ -26,7 +26,15 @@
 
 	<properties>
 		<parentBasedir>../../</parentBasedir>
-	</properties>
+		<modeshape.version>2.8.2.Final</modeshape.version>
+		<forkMode>once</forkMode>
+        <maven-failsafe-plugin.version>2.7.2</maven-failsafe-plugin.version>
+        <maven-jetty-plugin.version>6.1.22</maven-jetty-plugin.version>
+        <jcr.version>2.0</jcr.version>
+        <jackrabbit-core.version>2.5.1</jackrabbit-core.version>
+        <slf4j-log4j12.version>1.6.4</slf4j-log4j12.version>
+        <log4j.version>1.2.16</log4j.version>
+    </properties>
 
 
 	<build>
@@ -43,23 +51,31 @@
 				<configuration>
 					<overlays>
 						<overlay>
-						</overlay>
-						<overlay>
-							<groupId>${project.groupId}</groupId>
-							<artifactId>chemistry-opencmis-server-inmemory</artifactId>
+                            <groupId>${overlay.groupId}</groupId>
+                            <artifactId>${overlay.artifactId}</artifactId>
 						</overlay>
 					</overlays>
+				   <webResources>
+				        <resource>
+			                <directory>${basedir}/src/main/webapp/WEB-INF</directory>
+			                <filtering>true</filtering>
+			                <targetPath>WEB-INF</targetPath>
+			                <includes>
+			                        <include>**/*.*</include>
+			                </includes>
+				        </resource>
+				    </webResources>				
 				</configuration>
 			</plugin>
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-failsafe-plugin</artifactId>
-				<version>2.7.2</version>
+				<version>${maven-failsafe-plugin.version}</version>
 				<configuration>
 					<encoding>UTF-8</encoding>
-					<forkMode>once</forkMode>
+					<forkMode>${forkMode}</forkMode>
 					<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
-					<argLine>-Xmx256m</argLine>
+					<argLine>-Xmx256m</argLine>	
 				</configuration>
 				<executions>
 					<execution>
@@ -79,7 +95,7 @@
 			<plugin>
 				<groupId>org.mortbay.jetty</groupId>
 				<artifactId>maven-jetty-plugin</artifactId>
-				<version>6.1.22</version>
+				<version>${maven-jetty-plugin.version}</version>
 				<configuration>
 					<scanIntervalSeconds>10</scanIntervalSeconds>
 					<stopPort>19966</stopPort>
@@ -90,6 +106,28 @@
 							<host>0.0.0.0</host>
 						</connector>
 					</connectors>
+					<systemProperties>
+                        <systemProperty>
+			              <name>org.apache.chemistry.opencmis.session.repository.id</name>
+			              <value>${jcr.repository}</value>
+			            </systemProperty>
+			            <systemProperty>
+			              <name>org.apache.chemistry.opencmis.user</name>
+			              <value>${jcr.username}</value>
+			            </systemProperty>
+			            <systemProperty>
+			              <name>org.apache.chemistry.opencmis.password</name>
+			              <value>${jcr.password}</value>
+			            </systemProperty>
+ 	                	<systemProperty>
+		                	<name>org.apache.jackrabbit.repository.conf</name>
+		                	<value>${basedir}/src/test/resources/repository.xml</value>
+	                	</systemProperty>
+	                	<systemProperty>
+	                		<name>org.apache.jackrabbit.repository.home</name>
+	                		<value>${basedir}/target/jackrabbit-repo</value>
+	                	</systemProperty>
+		            </systemProperties>					
 					<webAppConfig>
 						<contextPath>/opencmis</contextPath>
 					</webAppConfig>
@@ -114,7 +152,7 @@
 						</goals>
 					</execution>
 				</executions>
-			</plugin>
+			</plugin>  				
 		</plugins>
 	</build>
 
@@ -126,16 +164,127 @@
 		</dependency>
 		<dependency>
 			<groupId>${project.groupId}</groupId>
-			<artifactId>chemistry-opencmis-server-inmemory</artifactId>
-			<version>${project.version}</version>
-			<type>war</type>
-		</dependency>
-		<dependency>
-			<groupId>${project.groupId}</groupId>
 			<artifactId>chemistry-opencmis-test-util</artifactId>
 			<version>${project.version}</version>
 			<type>jar</type>
 			<scope>compile</scope>
 		</dependency>
 	</dependencies>
+	
+	<profiles>
+        <profile>
+            <id>jcr-modeshape-inmemory</id>
+            <properties>
+            	<overlay.groupId>org.apache.chemistry.opencmis</overlay.groupId>
+            	<overlay.artifactId>chemistry-opencmis-server-jcr</overlay.artifactId>
+            	<jcr.factory.class>org.apache.chemistry.opencmis.jcr.JcrServiceFactory</jcr.factory.class>
+            	<!-- Uses in ServiceLoader to look up impl. -->
+            	<jcr.service.factory.class>org.modeshape.jcr.JcrRepositoryFactory</jcr.service.factory.class>
+            	<jcr.repository>test</jcr.repository>
+            </properties>
+	        <dependencies>
+		        <dependency>
+		            <groupId>org.modeshape</groupId>
+		            <artifactId>modeshape-jcr</artifactId>
+		            <version>${modeshape.version}</version>
+		        </dependency>
+		        <dependency>
+		            <groupId>org.apache.chemistry.opencmis</groupId>
+		            <artifactId>chemistry-opencmis-server-jcr</artifactId>
+		            <version>${project.version}</version>
+		            <type>war</type>
+		        </dependency>
+		        <dependency>
+		            <groupId>org.apache.chemistry.opencmis</groupId>
+		            <artifactId>chemistry-opencmis-server-bindings</artifactId>
+		            <version>${project.version}</version>
+		            <classifier>classes</classifier>
+		        </dependency>
+		
+		        <dependency>
+		            <groupId>org.apache.chemistry.opencmis</groupId>
+		            <artifactId>chemistry-opencmis-server-jcr</artifactId>
+		            <version>${project.version}</version>
+		            <classifier>classes</classifier>
+		        </dependency>				        
+	        </dependencies>
+        </profile>
+        <profile>
+            <id>chemistry-inmemory</id>
+             <activation>
+            	<activeByDefault>true</activeByDefault>
+            </activation> 
+            <properties>
+            	<overlay.groupId>${project.groupId}</overlay.groupId>
+            	<overlay.artifactId>chemistry-opencmis-server-inmemory</overlay.artifactId>
+            	<jcr.factory.class>org.apache.chemistry.opencmis.inmemory.server.InMemoryServiceFactoryImpl</jcr.factory.class>
+            	<!-- Uses in ServiceLoader to look up impl. -->
+            	<jcr.service.factory.class>${jcr.factory.class}</jcr.service.factory.class>
+            	<jcr.repository>test</jcr.repository>
+            </properties>
+	        <dependencies>
+	        	<dependency>
+					<groupId>${project.groupId}</groupId>
+					<artifactId>chemistry-opencmis-server-inmemory</artifactId>
+					<version>${project.version}</version>
+					<type>war</type>
+				</dependency>
+	        </dependencies>
+	    </profile>
+        <profile>
+            <id>jcr-jackrabbit-filesystem</id>
+            <properties>
+            	<overlay.groupId>${project.groupId}</overlay.groupId>
+            	<overlay.artifactId>chemistry-opencmis-server-bindings</overlay.artifactId>
+            	<jcr.factory.class>org.apache.chemistry.opencmis.jcr.JcrServiceFactory</jcr.factory.class>
+            	<!-- Uses in ServiceLoader to look up impl.  -->
+            	<jcr.service.factory.class>org.apache.jackrabbit.core.RepositoryFactoryImpl</jcr.service.factory.class>
+            	<jcr.repository>default</jcr.repository>  
+            	<jcr.username>admin</jcr.username>
+            	<jcr.password>admin</jcr.password>
+            	<forkMode>never</forkMode>
+            </properties>
+	        <dependencies>
+              <dependency>
+                    <groupId>javax.jcr</groupId>
+                    <artifactId>jcr</artifactId>
+                    <version>${jcr.version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.jackrabbit</groupId>
+                    <artifactId>jackrabbit-core</artifactId>
+                    <version>${jackrabbit-core.version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>org.slf4j</groupId>
+                    <artifactId>slf4j-log4j12</artifactId>
+                    <version>${slf4j-log4j12.version}</version>
+                </dependency>
+                <dependency>
+                    <groupId>log4j</groupId>
+                    <artifactId>log4j</artifactId>
+                    <version>${log4j.version}</version>
+                </dependency>
+		        <dependency>
+		            <groupId>org.apache.chemistry.opencmis</groupId>
+		            <artifactId>chemistry-opencmis-server-jcr</artifactId>
+		            <version>${project.version}</version>
+		            <type>war</type>
+		        </dependency>
+		        <dependency>
+		            <groupId>org.apache.chemistry.opencmis</groupId>
+		            <artifactId>chemistry-opencmis-server-bindings</artifactId>
+		            <version>${project.version}</version>
+		            <classifier>classes</classifier>
+		        </dependency>
+		
+		        <dependency>
+		            <groupId>org.apache.chemistry.opencmis</groupId>
+		            <artifactId>chemistry-opencmis-server-jcr</artifactId>
+		            <version>${project.version}</version>
+		            <classifier>classes</classifier>
+		        </dependency>		            	        
+	        </dependencies>
+	    </profile>	    
+    </profiles>
 </project>

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/readme.txt
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/readme.txt?rev=1404113&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/readme.txt
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/readme.txt
Wed Oct 31 12:34:02 2012
@@ -0,0 +1,2 @@
+There are three profiles: jcr-modeshape-inmemory, chemistry-inmemory, jcr-jackrabbit-filesystem
+Please, use mvn clean install -P <profileName> for testing one of the repository implementations.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/javax.jcr.RepositoryFactory
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/javax.jcr.RepositoryFactory?rev=1404113&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/javax.jcr.RepositoryFactory
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/javax.jcr.RepositoryFactory
Wed Oct 31 12:34:02 2012
@@ -0,0 +1 @@
+${jcr.service.factory.class} # JCR Implementation

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/org.modeshape.jcr.api.RepositoryFactory
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/org.modeshape.jcr.api.RepositoryFactory?rev=1404113&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/org.modeshape.jcr.api.RepositoryFactory
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/META-INF/services/org.modeshape.jcr.api.RepositoryFactory
Wed Oct 31 12:34:02 2012
@@ -0,0 +1 @@
+org.modeshape.jcr.JcrRepositoryFactory # Modeshape 2.x JCR Implementation

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/my-repository-config.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/my-repository-config.xml?rev=1404113&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/my-repository-config.xml
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/my-repository-config.xml
Wed Oct 31 12:34:02 2012
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+  ~ ModeShape (http://www.modeshape.org)
+  ~
+  ~ See the COPYRIGHT.txt file distributed with this work for information
+  ~ regarding copyright ownership.  Some portions may be licensed
+  ~ to Red Hat, Inc. under one or more contributor license agreements.
+  ~ See the AUTHORS.txt file in the distribution for a full listing of 
+  ~ individual contributors.
+  ~
+  ~ ModeShape is free software. Unless otherwise indicated, all code in ModeShape
+  ~ is licensed to you under the terms of the GNU Lesser General Public License as
+  ~ published by the Free Software Foundation; either version 2.1 of
+  ~ the License, or (at your option) any later version.
+  ~
+  ~ ModeShape is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+  ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+  ~ for more details.
+  ~
+  ~ You should have received a copy of the GNU Lesser General Public License
+  ~ along with this distribution; if not, write to:
+  ~ Free Software Foundation, Inc.
+  ~ 51 Franklin Street, Fifth Floor
+  ~ Boston, MA  02110-1301  USA
+  -->
+<configuration xmlns:mode="http://www.modeshape.org/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0">
+    <!-- 
+    Define the sources for the content.  These sources are directly accessible using the
ModeShape-specific Graph API.
+    In fact, this is how the ModeShape JCR implementation works.  You can think of these
as being similar to
+    JDBC DataSource objects, except that they expose graph content via the Graph API instead
of records via SQL or JDBC. 
+    -->
+    <mode:sources jcr:primaryType="nt:unstructured">
+        <!-- 
+        The 'JCR' repository is an in-memory source with a single default workspace (though
others could be created, too).
+        -->
+        <mode:source jcr:name="Store" 
+                    mode:classname="org.modeshape.graph.connector.inmemory.InMemoryRepositorySource"

+                    mode:description="The repository for our content" 
+                    mode:defaultWorkspaceName="test"
+                    mode:predefinedWorkspaceNames="test"
+                    mode:creatingWorkspacesAllowed="true"
+                    mode:updatesAllowed="true">
+
+        </mode:source>
+    </mode:sources>
+    <!-- 
+    Define the mime type detectors. This is an optional section.  By default, each engine
will use the 
+    MIME type detector that uses filename extensions.  So we wouldn't need to define the
same detector again,
+    but this is how you'd define another extension.
+    -->
+    <mode:mimeTypeDetectors>
+        <mode:mimeTypeDetector jcr:name="Detector">
+            <mode:description>Standard extension-based MIME type detector</mode:description>
+            <!-- 
+            Specify the implementation class (required), as a child element or attribute
on parent element.
+            -->
+            <mode:classname>org.modeshape.graph.mimetype.ExtensionBasedMimeTypeDetector</mode:classname>
+            <!-- 
+            Specify the classpath (optional) as an ordered list of 'names', where each name
is significant to 
+            the classpath factory.  For example, a name could be an OSGI identifier or a
Maven coordinate,
+            depending upon the classpath factory being used.  If there is only one 'name'
in the classpath,
+            it may be specified as an attribute on the 'mimeTypeDetector' element.  If there
is more than one
+            'name', then they must be specified as child 'classpath' elements. Blank or empty
values are ignored. 
+             -->
+            <mode:classpath></mode:classpath>
+        </mode:mimeTypeDetector>
+    </mode:mimeTypeDetectors>
+    <!-- 
+    Define the JCR repositories 
+    -->
+    <mode:repositories>
+        <!-- 
+        Define a JCR repository that accesses the 'JCR' source directly.
+        This of course is optional, since we could access the same content through 'JCR'.
+        -->
+        <mode:repository jcr:name="Test Repository Source">
+            <!-- Specify the source that should be used for the repository -->
+            <mode:source>Store</mode:source>
+            <!-- Define the options for the JCR repository, using camelcase version of
JcrRepository.Option names -->
+            <mode:options jcr:primaryType="mode:options">
+                <mode:option jcr:name="projectNodeTypes" mode:value="true"/>
+                <mode:option jcr:name="removeDerivedContentWithOriginal" mode:value="true"/>
+                <mode:option jcr:name="useAnonymousAccessOnFailedLogin" mode:value="true"/>
+
+                <!--<mode:option jcr:name="queryIndexesUpdatedSynchronously" mode:value="true"/>-->
+                <!--<mode:option jcr:name="queryIndexesRebuiltSynchronously" mode:value="true"/>-->
+                <!--<mode:option jcr:name="rebuildQueryIndexOnStartup" mode:value="always"/>-->
+                <!--<mode:option jcr:name="queryIndexDirectory" mode:value="./target/wdRepoWithProps/indexes"/>-->
+
+            </mode:options>
+            <!-- 
+            	Import the custom node types defined in the named resource (a file at a classpath-relative
+            	path).  If there was more than one file with custom node types, we could either
add successive
+            	<jcr:nodeTypes ... /> elements or just add all of the files as a comma-delimited
string in the
+            	mode:resource property.
+             -->
+            <!--<jcr:nodeTypes mode:resource="acme_types.cnd" />-->
+            <!-- Define any namespaces for this repository, other than those already defined
by JCR or ModeShape -->
+            <namespaces jcr:primaryType="mode:namespaces">
+                <modetest jcr:primaryType="mode:namespace" mode:uri="http://acme.com/product/1.0"/>
+            </namespaces>
+        </mode:repository>
+    </mode:repositories>
+</configuration>

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/my-repository-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/repository.properties
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/repository.properties?rev=1404113&r1=1404112&r2=1404113&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/repository.properties
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/main/webapp/WEB-INF/classes/repository.properties
Wed Oct 31 12:34:02 2012
@@ -13,13 +13,13 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-class=org.apache.chemistry.opencmis.inmemory.server.InMemoryServiceFactoryImpl
+class=${jcr.factory.class}
 
 # In Memory Settings
-InMemoryServer.RepositoryId=test
+InMemoryServer.RepositoryId=${jcr.repository}
 # InMemoryServer.RepositoryInfoCreatorClass=org.apache.chemistry.opencmis.client.provider.inmemory.UnitTestRepositoryInfo
-InMemoryServer.User=test
-InMemoryServer.Password=test
+InMemoryServer.User=${jcr.repository}
+InMemoryServer.Password=${jcr.repository}
 InMemoryServer.TypesCreatorClass=org.apache.chemistry.opencmis.inmemory.types.DefaultTypeSystemCreator
 
 # settings for init repository with data
@@ -43,3 +43,10 @@ RepositoryFiller.DocumentProperty.0=Stri
   # properties to set for a folder
 #RepositoryFiller.FolderProperty.0=StringFolderProp
   
+mount-path=/
+
+#Jackrabbit properties
+jcr.org.apache.jackrabbit.repository.uri=file:///${basedir}/target/jcr-repository
+
+#Modeshape properties
+jcr.org.modeshape.jcr.URL=file:///${basedir}/src/main/webapp/WEB-INF/classes/my-repository-config.xml

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/resources/repository.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/resources/repository.xml?rev=1404113&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/resources/repository.xml
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/resources/repository.xml
Wed Oct 31 12:34:02 2012
@@ -0,0 +1,156 @@
+<?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 2.0//EN"
+          "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
+
+<!-- Example Repository Configuration File
+     Used by
+     - org.apache.jackrabbit.core.config.RepositoryConfigTest.java
+     -
+-->
+<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>
+
+    <!--
+        data store configuration
+    -->
+    <DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
+
+    <!--
+        security configuration
+    -->
+    <Security appName="Jackrabbit">
+        <!--
+            security manager:
+            class: FQN of class implementing the JackrabbitSecurityManager interface
+        -->
+        <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
+            <!--
+            workspace access:
+            class: FQN of class implementing the WorkspaceAccessManager interface
+            -->
+            <!-- <WorkspaceAccessManager class="..."/> -->
+            <!-- <param name="config" value="${rep.home}/security.xml"/> -->
+        </SecurityManager>
+
+        <!--
+            access manager:
+            class: FQN of class implementing the AccessManager interface
+        -->
+        <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
+            <!-- <param name="config" value="${rep.home}/access.xml"/> -->
+        </AccessManager>
+
+        <LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
+           <!-- 
+              anonymous user name ('anonymous' is the default value)
+            -->
+           <param name="anonymousId" value="anonymous"/>
+           <!--
+              administrator user id (default value if param is missing is 'admin')
+            -->
+           <param name="adminId" value="admin"/>
+        </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.pool.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="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.pool.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="supportHighlighting" value="true"/>
+    </SearchIndex>
+
+    <!--
+        Run with a cluster journal
+    -->
+    <Cluster id="node1">
+          <Journal class="org.apache.jackrabbit.core.journal.FileJournal">
+		    <param name="revision" value="${rep.home}/revision.log" />
+		    <param name="directory" value="${rep.home}/myjournal" />
+		  </Journal>
+    </Cluster>
+</Repository>

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/resources/repository.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message