Este conteúdo não está disponível no idioma selecionado.
8.4. Configuring a ZIP File Sequencer
Include the relevant libraries
Includemodeshape-sequencer-zip-VERSION.jarin your application.Choose one of the following for sequencing configuration
- Define sequencing configuration based on standard example provided in
SOA-ROOT/eds/modeshape/resources/modeshape-config-standard.xml:<mode:sequencer jcr:name="ZIP File Sequencer" mode:classname="org.modeshape.sequencer.zip.ZipSequencer"> <mode:description> Sequences ZIP files loaded under '/files', extracting the archive file contents into the equivalent JCR graph structure of 'nt:file' and 'nt:folder' nodes. </mode:description> <mode:pathExpression> eds-store:default:/files(//)(*.zip[*])/jcr:content[@jcr:data] => eds-store:default:/sequenced/zip/$1 </mode:pathExpression> </mode:sequencer> - Configure via
org.modeshape.jcr.JcrConfiguration:JcrConfiguration config = ... config.sequencer("ZIP File Sequencer") .usingClass("org.modeshape.sequencer.zip.ZipSequencer") .loadedFromClasspath() .setDescription("Sequences ZIP files loaded under '/files', extracting the archive file contents into the equivalent JCR graph structure of 'nt:file' and 'nt:folder' nodes.") .sequencingFrom("/files(//)(*.zip[*])/jcr:content[@jcr:data]") .andOutputtingTo("/sequenced/zip/$1");
Note
Refer toSOA-ROOT/eds/modeshape/resources/modeshape-config-standard.xmlfor more information.