Class Dirname

java.lang.Object
All Implemented Interfaces:
Cloneable

public class Dirname extends Task
Determines the directory name of the specified file. This task can accept the following attributes:
  • file
  • property
Both file and property are required.

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