You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by mi...@apache.org on 2005/07/15 10:10:14 UTC
svn commit: r219166 - in /cocoon/blocks/jcr/trunk/conf: jcr-component.xconf
jcr-source.xconf
Author: michi
Date: Fri Jul 15 01:10:12 2005
New Revision: 219166
URL: http://svn.apache.org/viewcvs?rev=219166&view=rev
Log:
sample configs added
Added:
cocoon/blocks/jcr/trunk/conf/jcr-component.xconf
cocoon/blocks/jcr/trunk/conf/jcr-source.xconf
Added: cocoon/blocks/jcr/trunk/conf/jcr-component.xconf
URL: http://svn.apache.org/viewcvs/cocoon/blocks/jcr/trunk/conf/jcr-component.xconf?rev=219166&view=auto
==============================================================================
--- cocoon/blocks/jcr/trunk/conf/jcr-component.xconf (added)
+++ cocoon/blocks/jcr/trunk/conf/jcr-component.xconf Fri Jul 15 01:10:12 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 1999-2004 The Apache Software Foundation
+
+ Licensed 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.
+-->
+
+<xconf xpath="/cocoon" unless="/cocoon/component[@logger = 'jcr']">
+
+ <!--+
+ | JCR repository for samples:
+ |
+ | credentials : login information
+ | home : path of repository data
+ | configuration : location of repository.xml
+ +-->
+ <component class="org.apache.cocoon.jcr.JackrabbitRepository" logger="jcr" role="javax.jcr.Repository">
+ <credentials login="anonymous" password=""/>
+ <home src="file:/home/USER/repotest"/>
+ <configuration src="file:/home/USER/repository.xml"/>
+ </component>
+
+</xconf>
Added: cocoon/blocks/jcr/trunk/conf/jcr-source.xconf
URL: http://svn.apache.org/viewcvs/cocoon/blocks/jcr/trunk/conf/jcr-source.xconf?rev=219166&view=auto
==============================================================================
--- cocoon/blocks/jcr/trunk/conf/jcr-source.xconf (added)
+++ cocoon/blocks/jcr/trunk/conf/jcr-source.xconf Fri Jul 15 01:10:12 2005
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+
+ <xconf xpath="/cocoon/source-factories" unless="/cocoon/source-factories/component-instance[@name = 'jcr']">
+
+ <component-instance class="org.apache.cocoon.jcr.source.JCRSourceFactory" name="jcr">
+<folder-node type="rep:root" new-file="nt:file" new-folder="nt:folder"/>
+<folder-node type="nt:unstructured" new-file="nt:file"/>
+<!--
+<folder-node type="nt:folder" new-file="nt:file"/>
+-->
+<file-node type="nt:file" content-path="jcr:content" content-type="nt:resource"/>
+<file-node type="nt:linkedFile" content-ref="jcr:content"/>
+ </component>
+
+ </xconf>