org.apache.lenya.cms.ant
Class BulkCopyTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Copy
              extended by org.apache.lenya.cms.ant.BulkCopyTask

public class BulkCopyTask
extends org.apache.tools.ant.taskdefs.Copy

Copies all files matching filename or all specified filesets from each source directory.

Usage: <bulkCopy sourcedirs="dirOne:dirTwo" todir="WEB-INF/lib" flatten="true"> <fileset includes="java/lib/*"/> </bulkCopy>

The above sample copies dirOne/java/lib/* and dirTwo/java/lib/* to WEB-INF/lib.


Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.Copy
completeDirMap, destDir, destFile, dirCopyMap, failonerror, file, fileCopyMap, filesets, fileUtils, filtering, flatten, forceOverwrite, includeEmpty, mapperElement, preserveLastModified, verbosity
 
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
BulkCopyTask()
           
 
Method Summary
 void execute()
           
 void setSourceDirs(org.apache.tools.ant.types.Path sourceDirs)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.Copy
add, addFileset, buildMap, createFilterChain, createFilterSet, createMapper, doFileOperations, getEncoding, getFileUtils, getFilterChains, getFilterSets, getOutputEncoding, getPreserveLastModified, isEnableMultipleMapping, scan, setEnableMultipleMappings, setEncoding, setFailOnError, setFile, setFiltering, setFlatten, setGranularity, setIncludeEmptyDirs, setOutputEncoding, setOverwrite, setPreserveLastModified, setPreserveLastModified, setTodir, setTofile, setVerbose, validateAttributes
 
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

BulkCopyTask

public BulkCopyTask()
Method Detail

execute

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

setSourceDirs

public void setSourceDirs(org.apache.tools.ant.types.Path sourceDirs)
Parameters:
sourceDirs - Colon separated list of source directories


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