org.apache.tools.ant.taskdefs
public class CopyPath extends Task
Since: Ant 1.7
UNKNOWN: category="filesystem"
| Field Summary | |
|---|---|
| static String | ERROR_NO_DESTDIR No destdir attribute |
| static String | ERROR_NO_MAPPER No mapper |
| static String | ERROR_NO_PATH No path |
| Method Summary | |
|---|---|
| void | add(FileNameMapper newmapper)
add a mapper
|
| Path | createPath()
Create a path.
|
| void | execute()
This is a very minimal derivative of the nomal copy logic.
|
| void | setDestDir(File destDir)
The dest dir attribute. |
| void | setGranularity(long granularity)
Set the number of milliseconds leeway to give before deciding a
target is out of date.
|
| void | setPath(Path s)
Set the path to be used when running the Java class.
|
| void | setPathRef(Reference r)
Set the path to use by reference.
|
| 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.
|
Parameters: newmapper the mapper to add.
Returns: a path to be configured.
Throws: BuildException if something goes wrong with the build.
Parameters: destDir the value of the destdir attribute.
Parameters: granularity the granularity used to decide if a target is out of date.
Parameters: s an Ant Path object containing the path.
Parameters: r a reference to an existing path.
Parameters: preserveLastModified if true preserve the modified time; default is false.
Throws: BuildException if an error occurs.