org.apache.lenya.cms.ant
Class DeleteRCTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.lenya.cms.ant.PublicationTask
              extended by org.apache.lenya.cms.ant.DocumentOperationTask
                  extended by org.apache.lenya.cms.ant.TwoDocumentsOperationTask
                      extended by org.apache.lenya.cms.ant.DeleteRCTask
All Implemented Interfaces:
SiteTreeNodeVisitor

public class DeleteRCTask
extends TwoDocumentsOperationTask

Ant task to delete the rcml- and backup files of documents corresponding to a defined subtree (Visitor pattern) Visitor of the subtree. The subtree is reverse visited.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
DeleteRCTask()
           
 
Method Summary
 void execute()
           
 java.lang.String getRcbakdir()
           
 java.lang.String getRcmldir()
           
 java.lang.String getSrcareadir()
           
 void setRcbakdir(java.lang.String string)
           
 void setRcmldir(java.lang.String string)
           
 void setSrcareadir(java.lang.String string)
           
 void visitSiteTreeNode(SiteTreeNode node)
          (non-Javadoc)
 
Methods inherited from class org.apache.lenya.cms.ant.TwoDocumentsOperationTask
getSecarea, getSecdocumentid, setSecarea, setSecdocumentid
 
Methods inherited from class org.apache.lenya.cms.ant.DocumentOperationTask
getFirstarea, getFirstdocumentid, setFirstarea, setFirstdocumentid
 
Methods inherited from class org.apache.lenya.cms.ant.PublicationTask
assertString, getContextPrefix, getPublication, getPublicationDirectory, getPublicationId, getServletContext
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteRCTask

public DeleteRCTask()
Method Detail

visitSiteTreeNode

public void visitSiteTreeNode(SiteTreeNode node)
(non-Javadoc)

Specified by:
visitSiteTreeNode in interface SiteTreeNodeVisitor
Specified by:
visitSiteTreeNode in class DocumentOperationTask
Parameters:
node - The SiteTreeNode.
See Also:
SiteTreeNodeVisitor.visitSiteTreeNode(org.apache.lenya.cms.publication.SiteTreeNode)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class TwoDocumentsOperationTask
Throws:
org.apache.tools.ant.BuildException
See Also:
Task.execute()

getRcbakdir

public java.lang.String getRcbakdir()
Returns:
The backup directory.

getRcmldir

public java.lang.String getRcmldir()
Returns:
The rcml directory.

getSrcareadir

public java.lang.String getSrcareadir()
Returns:
The path of the area from the publication.

setRcbakdir

public void setRcbakdir(java.lang.String string)
Parameters:
string - The backup directory.

setRcmldir

public void setRcmldir(java.lang.String string)
Parameters:
string - The rcml directory.

setSrcareadir

public void setSrcareadir(java.lang.String string)
Parameters:
string - The path of the area from the publication.


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.