HasFreeSpace (Apache Ant API)
Keywords: org.apache.tools.ant.taskdefs.condition.HasFreeSpace class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.taskdefs.condition
Class HasFreeSpace

    java.lang.Object
      org.apache.tools.ant.taskdefs.condition.HasFreeSpace

All 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

Constructor Summary
`HasFreeSpace()`

Method Summary
`boolean` | `eval()` Is this condition true?
`java.lang.String` | `getNeeded()` The amount of free space required
`java.lang.String` | `getPartition()` The partition/device to check
`void` | `setNeeded(java.lang.String needed)`
`void` | `setPartition(java.lang.String partition)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### HasFreeSpace

    public HasFreeSpace()

Method Detail

### eval

    public boolean eval()
                 throws BuildException

  Description copied from interface: `Condition`
  Is this condition true?

  Specified by:
    `eval` in interface `Condition`
  Returns:
    true if the condition is true
  Throws:
    `BuildException` - if an error occurs

### getPartition

    public java.lang.String getPartition()

  The partition/device to check

  Returns:

### setPartition

    public void setPartition(java.lang.String partition)

### getNeeded

    public java.lang.String getNeeded()

  The amount of free space required

  Returns:
    the amount required

### setNeeded

    public void setNeeded(java.lang.String needed)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD