org.apache.cocoon.maven.deployer.monolithic
Class SingleFileDeployer

java.lang.Object
  extended by org.apache.cocoon.maven.deployer.monolithic.SingleFileDeployer
All Implemented Interfaces:
FileDeployer
Direct Known Subclasses:
XPatchDeployer

public class SingleFileDeployer
extends Object
implements FileDeployer

Deploy a single file.

Version:
$Id: SingleFileDeployer.html 1351235 2012-06-18 08:41:39Z ilgrosso $

Constructor Summary
SingleFileDeployer(String outputDir)
           
SingleFileDeployer(String outputDir, boolean skipRootDirectory)
           
 
Method Summary
protected  File getBasedir()
           
protected  String getFileName(String documentName)
           
protected  org.apache.maven.plugin.logging.Log getLogger()
           
protected  String getOutputDir()
           
protected  String removeRootDirectory(String documentName)
           
 void setAlreadyDeployedFilesSet(Set alreadyDeployedFilesSet)
           
 void setBasedir(File basedir)
           
 void setLogger(org.apache.maven.plugin.logging.Log logger)
           
 OutputStream writeResource(String documentName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleFileDeployer

public SingleFileDeployer(String outputDir,
                          boolean skipRootDirectory)

SingleFileDeployer

public SingleFileDeployer(String outputDir)
Method Detail

setBasedir

public void setBasedir(File basedir)
Specified by:
setBasedir in interface FileDeployer

getBasedir

protected File getBasedir()

setLogger

public void setLogger(org.apache.maven.plugin.logging.Log logger)
Specified by:
setLogger in interface FileDeployer

getLogger

protected org.apache.maven.plugin.logging.Log getLogger()

setAlreadyDeployedFilesSet

public void setAlreadyDeployedFilesSet(Set alreadyDeployedFilesSet)
Specified by:
setAlreadyDeployedFilesSet in interface FileDeployer

getFileName

protected String getFileName(String documentName)

getOutputDir

protected String getOutputDir()

writeResource

public OutputStream writeResource(String documentName)
                           throws IOException
Specified by:
writeResource in interface FileDeployer
Throws:
IOException

removeRootDirectory

protected String removeRootDirectory(String documentName)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.