Deprecated
this task should have never been released and was obsoleted by ResourceCollection support in Copy available since Ant 1.7.0. Don't use it.
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| public static final String | ERROR_NO_DESTDIR
No destdir attribute |
| public static final String | ERROR_NO_MAPPER
No mapper |
| public static final String | ERROR_NO_PATH
No path |
| private static final FileUtils | |
| private long | |
| private FileNameMapper | |
| private Path | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Path | |
| public void | execute()
Overrides org. |
| public void | |
| public void | setGranularity(long
the granularity used to decide if a target is out of
date. granularity)Set the number of milliseconds leeway to give before deciding a target is out of date. |
| public void | |
| public void | |
| public void | setPreserveLastModified(boolean
if true preserve the modified time;
default is false. 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. |
| destDir | back to summary |
|---|---|
| private File destDir | |
| ERROR_NO_DESTDIR | back to summary |
|---|---|
| public static final String ERROR_NO_DESTDIR No destdir attribute | |
| ERROR_NO_MAPPER | back to summary |
|---|---|
| public static final String ERROR_NO_MAPPER No mapper | |
| ERROR_NO_PATH | back to summary |
|---|---|
| public static final String ERROR_NO_PATH No path | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS | |
| granularity | back to summary |
|---|---|
private long granularity
| |
| mapper | back to summary |
|---|---|
| private FileNameMapper mapper | |
| path | back to summary |
|---|---|
| private Path path | |
| preserveLastModified | back to summary |
|---|---|
| private boolean preserveLastModified | |
| CopyPath | back to summary |
|---|---|
| public CopyPath() | |
| add | back to summary |
|---|---|
| public void add(FileNameMapper newmapper) add a mapper
| |
| createPath | back to summary |
|---|---|
| public Path createPath() Create a path.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. This is a very minimal derivative of the normal copy logic.
| |
| setDestDir | back to summary |
|---|---|
| public void setDestDir(File destDir) The dest dir attribute.
| |
| setGranularity | back to summary |
|---|---|
| public void setGranularity(long granularity) Set the number of milliseconds leeway to give before deciding a target is out of date. TODO: This is not yet used.
| |
| setPath | back to summary |
|---|---|
| public void setPath(Path s) Set the path to be used when running the Java class.
| |
| setPathRef | back to summary |
|---|---|
| public void setPathRef(Reference r) Set the path to use by reference.
| |
| setPreserveLastModified | back to summary |
|---|---|
| public void setPreserveLastModified(boolean preserveLastModified) Give the copied files the same last modified time as the original files.
| |
| validateAttributes | back to summary |
|---|---|
| protected void validateAttributes() throws BuildException Ensure we have a consistent and legal set of attributes, and set any internal flags necessary based on different combinations of attributes.
| |