| |
|
| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.CopyPath
CopyPath | public class CopyPath extends Task (Code) | | Copy the contents of a path to a destination, using the mapper of choice
since: Ant 1.7 |
Method Summary | |
public void | add(FileNameMapper newmapper) | public Path | createPath() Create a path. | public void | execute() This is a very minimal derivative of the nomal copy logic. | public void | setDestDir(File destDir) The dest dir attribute. | public void | setGranularity(long granularity) Set the number of milliseconds leeway to give before deciding a
target is out of date. | public void | setPath(Path s) Set the path to be used when running the Java class. | public void | setPathRef(Reference r) Set the path to use by reference. | public void | setPreserveLastModified(boolean preserveLastModified) Give the copied files the same last modified time as the original files. | protected void | validateAttributes() Ensure we have a consistent and legal set of attributes, and set any
internal flags necessary based on different combinations of attributes. |
ERROR_NO_DESTDIR | final public static String ERROR_NO_DESTDIR(Code) | | No destdir attribute
|
ERROR_NO_MAPPER | final public static String ERROR_NO_MAPPER(Code) | | No mapper
|
ERROR_NO_PATH | final public static String ERROR_NO_PATH(Code) | | No path
|
add | public void add(FileNameMapper newmapper)(Code) | | add a mapper
Parameters: newmapper - the mapper to add. |
createPath | public Path createPath()(Code) | | Create a path.
a path to be configured. |
execute | public void execute() throws BuildException(Code) | | This is a very minimal derivative of the nomal copy logic.
throws: BuildException - if something goes wrong with the build. |
setDestDir | public void setDestDir(File destDir)(Code) | | The dest dir attribute.
Parameters: destDir - the value of the destdir attribute. |
setGranularity | public void setGranularity(long granularity)(Code) | | Set the number of milliseconds leeway to give before deciding a
target is out of date.
TODO: This is not yet used.
Parameters: granularity - the granularity used to decide if a target is out ofdate. |
setPath | public void setPath(Path s)(Code) | | Set the path to be used when running the Java class.
Parameters: s - an Ant Path object containing the path. |
setPathRef | public void setPathRef(Reference r)(Code) | | Set the path to use by reference.
Parameters: r - a reference to an existing path. |
setPreserveLastModified | public void setPreserveLastModified(boolean preserveLastModified)(Code) | | Give the copied files the same last modified time as the original files.
Parameters: preserveLastModified - if true preserve the modified time;default is false. |
validateAttributes | protected void validateAttributes() throws BuildException(Code) | | Ensure we have a consistent and legal set of attributes, and set any
internal flags necessary based on different combinations of attributes.
throws: BuildException - if an error occurs. |
|
|
|