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 SummaryConstructors
- 
Method SummaryModifier 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- 
HasFreeSpacepublic HasFreeSpace()
 
- 
- 
Method Details- 
evalEvaluate the condition.- Specified by:
- evalin interface- Condition
- Returns:
- true if there enough free space.
- Throws:
- BuildException- if there is a problem.
 
- 
getPartitionThe partition/device to check- Returns:
- the partition.
 
- 
setPartitionSet the partition name.- Parameters:
- partition- the name to use.
 
- 
getNeededThe amount of free space required- Returns:
- the amount required
 
- 
setNeededSet the amount of space required.- Parameters:
- needed- the amount required.
 
 
-