jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: rev 47397 - in incubator/jackrabbit/trunk/applications: . test
Date Tue, 28 Sep 2004 14:23:43 GMT
Author: mreutegg
Date: Tue Sep 28 07:23:42 2004
New Revision: 47397

Added:
   incubator/jackrabbit/trunk/applications/
   incubator/jackrabbit/trunk/applications/test/
   incubator/jackrabbit/trunk/applications/test/config.xml
   incubator/jackrabbit/trunk/applications/test/log4j.properties
   incubator/jackrabbit/trunk/applications/test/repositoryStubImpl.properties
Log:
Added applications folder with a test subfolder for JUnit tests.

Added: incubator/jackrabbit/trunk/applications/test/config.xml
==============================================================================
--- (empty file)
+++ incubator/jackrabbit/trunk/applications/test/config.xml	Tue Sep 28 07:23:42 2004
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE Repositories [
+  <!ELEMENT Repositories (Repository+)>
+  <!ELEMENT Repository (RepositoryStore,StableWorkspace+)>
+  <!ATTLIST Repository
+    name CDATA #REQUIRED>
+  <!ELEMENT RepositoryStore (FileSystem)>
+  <!ELEMENT StableWorkspace (PersistenceManager,WorkspaceStore,BLOBStore?,DynamicWorkspace*,SearchIndex?)>
+  <!ATTLIST StableWorkspace
+    name CDATA #REQUIRED>
+  <!ELEMENT PersistenceManager (param*)>
+  <!ATTLIST PersistenceManager
+    class CDATA #REQUIRED>
+  <!ELEMENT WorkspaceStore (FileSystem)>
+  <!ELEMENT BLOBStore (FileSystem)>
+  <!ELEMENT DynamicWorkspace (PersistenceManager,WorkspaceStore,BLOBStore?)>
+  <!ATTLIST DynamicWorkspace
+    name CDATA #REQUIRED>
+  <!ELEMENT SearchIndex EMPTY>
+  <!ATTLIST SearchIndex
+    path CDATA #REQUIRED>  
+  <!ELEMENT FileSystem (param*)>
+  <!ATTLIST FileSystem
+    class CDATA #REQUIRED>
+  <!ELEMENT param EMPTY>
+  <!ATTLIST param
+    name CDATA #REQUIRED
+    value CDATA #REQUIRED>]>
+
+<Repositories>
+    <!-- sample configuration for a repository that stores its state in a local file system
-->
+    <Repository name="localfs">
+	<RepositoryStore>
+	    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+		<param name="path" value="${factory.home}/repositories/localfs/repository"/>
+	    </FileSystem>
+	</RepositoryStore>
+	<!-- main workspace -->
+	<StableWorkspace name="default">
+	    <PersistenceManager class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager"/>
+	    <WorkspaceStore>
+		<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+		    <param name="path" value="${factory.home}/repositories/localfs/workspaces/default/data"/>
+		</FileSystem>
+	    </WorkspaceStore>
+	    <BLOBStore>
+		<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+		    <param name="path" value="${factory.home}/repositories/localfs/workspaces/default/blobs"/>
+		</FileSystem>
+	    </BLOBStore>
+	    <SearchIndex path="${factory.home}/repositories/localfs/workspaces/default/index"/>
+	</StableWorkspace>
+    </Repository>
+</Repositories>
\ No newline at end of file

Added: incubator/jackrabbit/trunk/applications/test/log4j.properties
==============================================================================
--- (empty file)
+++ incubator/jackrabbit/trunk/applications/test/log4j.properties	Tue Sep 28 07:23:42 2004
@@ -0,0 +1,19 @@
+# Set root logger level to DEBUG and its only appender to A1.
+log4j.rootLogger=INFO, stdout, file
+#log4j.rootLogger=DEBUG, stdout, file
+#log4j.rootLogger=ERROR, stdout, file
+
+# 'stdout' is set to be a ConsoleAppender.
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+
+# 'stdout' uses PatternLayout
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}:
%m (%F, line %L)\n
+
+# 'file' is set to be a FileAppender.
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.File=jcr.log
+
+# 'file' uses PatternLayout.
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m
(%F, line %L)\n

Added: incubator/jackrabbit/trunk/applications/test/repositoryStubImpl.properties
==============================================================================
--- (empty file)
+++ incubator/jackrabbit/trunk/applications/test/repositoryStubImpl.properties	Tue Sep 28
07:23:42 2004
@@ -0,0 +1,18 @@
+#
+# $Id: repositoryStub.properties,v 1.1 2004/02/18 14:34:48 mreutegg Exp $
+#
+
+# Stub implementation class
+javax.jcr.tck.repository_stub_impl=org.apache.jackrabbit.test.JackrabbitRepositoryStub
+
+# credential configuration
+javax.jcr.tck.superuser.name=superuser
+javax.jcr.tck.superuser.pwd=
+javax.jcr.tck.readwrite.name=superuser
+javax.jcr.tck.readwrite.pwd=
+javax.jcr.tck.readonly.name=anonymous
+javax.jcr.tck.readonly.pwd=
+
+# repository name
+org.apache.jackrabbit.repository.name=localfs
+org.apache.jackrabbit.repository.home=applications/test

Mime
View raw message