Class HasFreeSpace
- java.lang.Object
-
- org.apache.tools.ant.taskdefs.condition.HasFreeSpace
-
-
Constructor Summary
Constructors Constructor Description HasFreeSpace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
eval()
Evaluate the condition.java.lang.String
getNeeded()
The amount of free space requiredjava.lang.String
getPartition()
The partition/device to checkvoid
setNeeded(java.lang.String needed)
Set the amount of space required.void
setPartition(java.lang.String partition)
Set the partition name.
-
-
-
Method Detail
-
eval
public boolean eval() throws BuildException
Evaluate the condition.- Specified by:
eval
in interfaceCondition
- Returns:
- true if there enough free space.
- Throws:
BuildException
- if there is a problem.
-
getPartition
public java.lang.String getPartition()
The partition/device to check- Returns:
- the partition.
-
setPartition
public void setPartition(java.lang.String partition)
Set the partition name.- Parameters:
partition
- the name to use.
-
getNeeded
public java.lang.String getNeeded()
The amount of free space required- Returns:
- the amount required
-
setNeeded
public void setNeeded(java.lang.String needed)
Set the amount of space required.- Parameters:
needed
- the amount required.
-
-