org.apache.cocoon.maven.deployer.monolithic
Class RuleBasedZipExtractor
java.lang.Object
org.apache.cocoon.maven.deployer.monolithic.RuleBasedZipExtractor
public class RuleBasedZipExtractor
- extends Object
This class performs the actual deployment based on rules. A rule is mapped to
a FileDeployer
and when the rule is executed and returns true,
the file deployer is executed.
- Version:
- $Id: RuleBasedZipExtractor.html 1351235 2012-06-18 08:41:39Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleBasedZipExtractor
public RuleBasedZipExtractor(File basedir,
org.apache.maven.plugin.logging.Log logger)
addRule
public void addRule(String pattern,
FileDeployer fileDeployer)
extract
public void extract(File zipFile)
throws IOException
- Throws:
IOException
findFileDeployer
protected FileDeployer findFileDeployer(String name)
- Loop over all rules and if one matches, the corresponding
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.