net.dpml.tools.tasks
Class ReplicateTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bynet.dpml.tools.tasks.GenericTask
              extended bynet.dpml.tools.tasks.ReplicateTask

public class ReplicateTask
extends GenericTask

Consolidates a set of resources based on project dependencies.

Version:
1.1.0
Author:
Digital Product Meta Library

Nested Class Summary
 class ReplicateTask.Include
          Declaration of an include.
 
Field Summary
 
Fields inherited from class net.dpml.tools.tasks.GenericTask
ASC_EXT, GPG_EXE_KEY, MD5_EXT
 
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
ReplicateTask()
           
 
Method Summary
 ReplicateTask.Include createInclude()
          Create and add a new include.
 void execute()
          Execute the task.
 void setKey(String key)
          Set the key of the target project or resource.
 void setLayout(String id)
          Set the id of the target layout strategy.
 void setRef(String ref)
          Set the ref of the target project or resource.
 void setSelf(boolean flag)
          Settting self to TRUE will result in expansion of the path to include the target resource.
 void setTodir(File todir)
          The target directory to copy cached based path elements to.
 void setVerbose(boolean flag)
          Set the verbose policy.
 
Methods inherited from class net.dpml.tools.tasks.GenericTask
asc, checksum, copy, deleteDir, getContext, getLibrary, getResource, init, isInitialized, mkDir
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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

ReplicateTask

public ReplicateTask()
Method Detail

setKey

public void setKey(String key)
Set the key of the target project or resource.

Parameters:
key - the resource key

setRef

public void setRef(String ref)
Set the ref of the target project or resource.

Parameters:
ref - the resource reference

setLayout

public void setLayout(String id)
Set the id of the target layout strategy.

Parameters:
id - the layout identifier

setVerbose

public void setVerbose(boolean flag)
Set the verbose policy.

Parameters:
flag - the verbose flag

setSelf

public void setSelf(boolean flag)
Settting self to TRUE will result in expansion of the path to include the target resource.

Parameters:
flag - the self inclusion flag

createInclude

public ReplicateTask.Include createInclude()
Create and add a new include.

Returns:
the include

setTodir

public void setTodir(File todir)
The target directory to copy cached based path elements to.

Parameters:
todir - the destination directory

execute

public void execute()
Execute the task.