Sequencing of new content added through SVN connector
mkmichem Mar 9, 2012 10:05 AMHi guys,
I have been attempting to get SVN commits to be sequenced by JCR.
The XmlSequencerIntegrationTest only seems to test files published directly to the node-graph structure (via the API).
Does modeshape support sequencing of content sourced from SVN ?
Or am I missing an essential configuration setting somewhere ?
Synopsis:
Using Modeshape 2.7.0-FINAL.
If I use a simple JpaSource sequencing works out fine.
However, when I attempt the very same sequencing using SVN, it fails.
Here is my sequencer:
<mode:sequencers> <mode:sequencer jcr:name="XML File Sequencer" mode:classname="org.modeshape.sequencer.xml.XmlSequencer"> <mode:description>Sequences XML files loaded under '/files', extracting the contents into the equivalent JCR graph structure.</mode:description> <mode:pathExpression>//(*.(xml)[*])/jcr:content[@jcr:data] => /sequenced/xml/$1</mode:pathExpression> </mode:sequencer> </mode:sequencers>
And here is my source configuration:
<mode:sources jcr:primaryType="nt:unstructured"> <mode:source jcr:name="test-data" mode:classname="org.modeshape.connector.svn.SvnRepositorySource" mode:description="14592 The ModeShape SVN repository (anonymous access)" mode:repositoryRootUrl="http://apollo.tatis.com/repos/TEST" mode:username="michael" mode:password="michael" mode:creatingWorkspacesAllowed="true" mode:autoGenerateSchema="update" mode:referentialIntegrityEnforced="true" mode:largeValueSizeInBytes="10000" mode:retryLimit="3" mode:compressData="false" mode:defaultWorkspaceName="trunk" /> <mode:predefinedWorkspaceNames>tags</mode:predefinedWorkspaceNames> <mode:predefinedWorkspaceNames>trunk</mode:predefinedWorkspaceNames> </mode:sources>
And then my repository:
<mode:repositories> <mode:repository jcr:name="test-data-repository"> <mode:source>test-data</mode:source> <mode:nodeTypes jcr:primaryType="mode:nodeTypes" /> <namespaces jcr:primaryType="mode:namespaces" /> <mode:options jcr:primaryType="options"> <mode:option jcr:name="projectNodeTypes" mode:value="true"/> <mode:option jcr:name="jaasLoginConfigName" mode:value="modeshape"/> <mode:option jcr:name="systemSourceName" mode:value="system@store"/> <mode:option jcr:name="queryIndexDirectory" mode:value="${jboss.server.data.dir}/modeshape/repositories/store/indexes"/> <mode:option jcr:name="queryIndexesRebuiltSynchronously" mode:value="true"/> <mode:option jcr:name="rebuildQueryIndexOnStartup" mode:value="ifMissing"/> </mode:options> <jcr:nodeTypes> <mode:resource>/org/modeshape/sequencer/xml/xml.cnd</mode:resource> </jcr:nodeTypes> </mode:repository> </mode:repositories>
Would appreciate your help, as I really like Modeshape and I'm pushing and motivating for its adoption in our organisation.
Thank you,
-Michael