org.apache.cocoon.blockdeployment
Class DeploymentUtil

java.lang.Object
  extended byorg.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 $

Field Summary
protected static String BLOCK_RESOURCES_PATH
           
protected static Log logger
           
 
Constructor Summary
DeploymentUtil()
           
 
Method Summary
static void deploy(JarFile jarFile, String prefix, String destination)
          Deploy all files with a given prefix from a jar file to a directory in the file system.
static Map deployBlockArtifacts(String destinationDirectory)
           
protected static void deployBlockResources(String relativeDirectory, String destinationDirectory, Map blockContexts)
           
static void deployJarResources(String pattern, String destinationDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger

BLOCK_RESOURCES_PATH

protected static final String BLOCK_RESOURCES_PATH
See Also:
Constant Field Values
Constructor Detail

DeploymentUtil

public DeploymentUtil()
Method Detail

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.