Class HasFreeSpace
java.lang.Object
org.apache.tools.ant.taskdefs.condition.HasFreeSpace
- All Implemented Interfaces:
Condition
<hasfreespace>
Condition returns true if selected partition has the requested space, false otherwise.
- Since:
- Ant 1.7
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
eval()
Evaluate the condition.The amount of free space requiredThe partition/device to checkvoid
Set the amount of space required.void
setPartition
(String partition) Set the partition name.
-
Constructor Details
-
HasFreeSpace
public HasFreeSpace()
-
-
Method Details
-
eval
Evaluate the condition.- Specified by:
eval
in interfaceCondition
- Returns:
- true if there enough free space.
- Throws:
BuildException
- if there is a problem.
-
getPartition
The partition/device to check- Returns:
- the partition.
-
setPartition
Set the partition name.- Parameters:
partition
- the name to use.
-
getNeeded
The amount of free space required- Returns:
- the amount required
-
setNeeded
Set the amount of space required.- Parameters:
needed
- the amount required.
-