public class Dirname extends Task
When this task executes, it will set the specified property to the value of the specified file up to, but not including, the last path element. If file is a file, the directory will be the current directory.
Constructor and Description |
---|
Dirname() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute this task.
|
void |
setFile(File file)
Path to take the dirname of.
|
void |
setProperty(String property)
The name of the property to set.
|
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 void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic void setFile(File file)
file
- a File
valuepublic void setProperty(String property)
property
- the name of the property