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.
description, location, project
Constructor and Description |
---|
Dirname() |
Modifier and Type | Method and 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.
|
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 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 Task
BuildException
- on error