org.apache.tools.ant.taskdefs
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.
Since: Ant 1.5
UNKNOWN: category="property"
Method Summary | |
---|---|
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. |
Throws: BuildException on error
Parameters: file a File
value
Parameters: property the name of the property