java.lang.Cloneablepublic 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.
description, location, project| Constructor | Description |
|---|---|
Dirname() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute() |
Execute this task.
|
void |
setFile(java.io.File file) |
Path to take the dirname of.
|
void |
setProperty(java.lang.String property) |
The name of the property to set.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFile(java.io.File file)
file - a File valuepublic void setProperty(java.lang.String property)
property - the name of the propertypublic void execute()
throws BuildException
execute in class TaskBuildException - on error