Class HasFreeSpace
java.lang.Object
org.apache.tools.ant.taskdefs.condition.HasFreeSpace
-
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
-
setPartition
Set the partition name.- Parameters:
partition
- the name to use.
-
getNeeded
-
setNeeded
Set the amount of space required.- Parameters:
needed
- the amount required.
-