org.apache.tools.ant.taskdefs.condition
public class HasFreeSpace extends Object implements Condition
Condition returns true if selected partition has the requested space, false otherwise.
Since: Ant 1.7
Method Summary | |
---|---|
boolean | eval()
Evaluate the condition. |
String | getNeeded()
The amount of free space required |
String | getPartition()
The partition/device to check |
void | setNeeded(String needed)
Set the amount of space required. |
void | setPartition(String partition)
Set the partition name. |
Returns: true if there enough free space.
Throws: BuildException if there is a problem.
Returns: the amount required
Returns: the partition.
Parameters: needed the amount required.
Parameters: partition the name to use.