org.apache.tools.ant.taskdefs.condition

Class HasFreeSpace

public class HasFreeSpace extends Object implements Condition

<hasfreespace>

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

Since: Ant 1.7

Method Summary
booleaneval()
StringgetNeeded()
The amount of free space required
StringgetPartition()
The partition/device to check
voidsetNeeded(String needed)
voidsetPartition(String partition)

Method Detail

eval

public boolean eval()

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)