Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.condition

public Class HasFreeSpace

extends Object
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
java.io.File, org.apache.tools.ant.BuildException, org.apache.tools.ant.util.JavaEnvUtils, .ReflectWrapper, .StringUtils

<hasfreespace>

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

Since
Ant 1.7

Field Summary

Modifier and TypeField and Description
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if there enough free space.
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Evaluate the condition.
public String

Returns:

the amount required
getNeeded
()

The amount of free space required

public String

Returns:

the partition.
getPartition
()

The partition/device to check

public void
setNeeded(String
the amount required.
needed
)

Set the amount of space required.

public void
setPartition(String
the name to use.
partition
)

Set the partition name.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

neededback to summary
private String needed
partitionback to summary
private String partition

Constructor Detail

HasFreeSpaceback to summary
public HasFreeSpace()

Method Detail

evalback to summary
public boolean eval() throws BuildException

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Evaluate the condition.

Returns:boolean

true if there enough free space.

Annotations
@Override
Exceptions
BuildException:
if there is a problem.
getNeededback to summary
public String getNeeded()

The amount of free space required

Returns:String

the amount required

getPartitionback to summary
public String getPartition()

The partition/device to check

Returns:String

the partition.

setNeededback to summary
public void setNeeded(String needed)

Set the amount of space required.

Parameters
needed:String

the amount required.

setPartitionback to summary
public void setPartition(String partition)

Set the partition name.

Parameters
partition:String

the name to use.

validateback to summary
private void validate() throws BuildException