org.apache.tools.ant.taskdefs.condition

Class HasFreeSpace

Implemented Interfaces:
Condition

public class HasFreeSpace
extends java.lang.Object
implements Condition

<hasfreespace>

Condition returns true if selected partition has the requested space, false otherwise.

Since:
Ant 1.7

Method Summary

boolean
eval()
Is this condition true?
String
getNeeded()
The amount of free space required
String
getPartition()
The partition/device to check
void
setNeeded(String needed)
void
setPartition(String partition)

Method Details

eval

public boolean eval()
            throws BuildException
Is this condition true?
Specified by:
eval in interface Condition
Returns:
true if the condition is true
Throws:
BuildException - if an error occurs

getNeeded

public String getNeeded()
The amount of free space required
Returns:
the amount required

getPartition

public String getPartition()
The partition/device to check
Returns:

setNeeded

public void setNeeded(String needed)

setPartition

public void setPartition(String partition)