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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaneval()Evaluate the condition.The amount of free space requiredThe partition/device to checkvoidSet the amount of space required.voidsetPartition(String partition) Set the partition name.
-
Constructor Details
-
HasFreeSpace
public HasFreeSpace()
-
-
Method Details
-
eval
Evaluate the condition.- Specified by:
evalin 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.
-