org.apache.cocoon.blockdeployment
Class DeploymentUtil
java.lang.Object
org.apache.cocoon.blockdeployment.DeploymentUtil
- public abstract class DeploymentUtil
- extends Object
Helper class for deploying resources from the block artifacts.
- Since:
- 1.0
- Version:
- $Id: DeploymentUtil.java 648736 2008-04-16 16:24:32Z reinhard $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
BLOCK_RESOURCES_PATH
protected static final String BLOCK_RESOURCES_PATH
- See Also:
- Constant Field Values
DeploymentUtil
public DeploymentUtil()
deploy
public static void deploy(JarFile jarFile,
String prefix,
String destination)
throws IOException
- Deploy all files with a given prefix from a jar file to a directory in the file system.
- Parameters:
jarFile
- The jar file containing the resources.prefix
- The common prefix for the files.destination
- The destination directory.
- Throws:
IOException
deployBlockResources
protected static void deployBlockResources(String relativeDirectory,
String destinationDirectory,
Map blockContexts)
throws IOException
- Throws:
IOException
deployBlockArtifacts
public static Map deployBlockArtifacts(String destinationDirectory)
throws IOException
- Throws:
IOException
deployJarResources
public static void deployJarResources(String pattern,
String destinationDirectory)
throws IOException
- Throws:
IOException
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.