public class CopyPath extends Task
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_NO_DESTDIR
Deprecated.
No destdir attribute
|
static java.lang.String |
ERROR_NO_MAPPER
Deprecated.
No mapper
|
static java.lang.String |
ERROR_NO_PATH
Deprecated.
No path
|
description, location, project
Constructor and Description |
---|
CopyPath()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FileNameMapper newmapper)
Deprecated.
add a mapper
|
Path |
createPath()
Deprecated.
Create a path.
|
void |
execute()
Deprecated.
This is a very minimal derivative of the nomal copy logic.
|
void |
setDestDir(java.io.File destDir)
Deprecated.
The dest dir attribute.
|
void |
setGranularity(long granularity)
Deprecated.
Set the number of milliseconds leeway to give before deciding a
target is out of date.
|
void |
setPath(Path s)
Deprecated.
Set the path to be used when running the Java class.
|
void |
setPathRef(Reference r)
Deprecated.
Set the path to use by reference.
|
void |
setPreserveLastModified(boolean preserveLastModified)
Deprecated.
Give the copied files the same last modified time as the original files.
|
protected void |
validateAttributes()
Deprecated.
Ensure we have a consistent and legal set of attributes, and set any
internal flags necessary based on different combinations of attributes.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public static final java.lang.String ERROR_NO_DESTDIR
public static final java.lang.String ERROR_NO_PATH
public static final java.lang.String ERROR_NO_MAPPER
public void setDestDir(java.io.File destDir)
destDir
- the value of the destdir attribute.public void add(FileNameMapper newmapper)
newmapper
- the mapper to add.public void setPath(Path s)
s
- an Ant Path object containing the path.public void setPathRef(Reference r)
r
- a reference to an existing path.public Path createPath()
public void setGranularity(long granularity)
granularity
- the granularity used to decide if a target is out of
date.public void setPreserveLastModified(boolean preserveLastModified)
preserveLastModified
- if true preserve the modified time;
default is false.protected void validateAttributes() throws BuildException
BuildException
- if an error occurs.public void execute() throws BuildException
execute
in class Task
BuildException
- if something goes wrong with the build.