PropertyFileInputHandler (Apache Ant API)
Keywords: org.apache.tools.ant.input.PropertyFileInputHandler,PropertyFileInputHandler 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.input
Class PropertyFileInputHandler

    java.lang.Object
      |
      +--org.apache.tools.ant.input.PropertyFileInputHandler

All Implemented Interfaces:
  InputHandler

public class PropertyFileInputHandler
extends java.lang.Object
implements InputHandler

Reads input from a property file, the file name is read from the system property ant.input.properties, the prompt is the key for input.

Since:
  Ant 1.5

Field Summary
`static java.lang.String` | `FILE_NAME_KEY` Name of the system property we expect to hold the file name.

Constructor Summary
`PropertyFileInputHandler()` Empty no-arg constructor.

Method Summary
`void` | `handleInput(InputRequest request)` Picks up the input from a property, using the prompt as the name of the property.

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

Field Detail

### FILE_NAME_KEY

    public static final java.lang.String FILE_NAME_KEY

  Name of the system property we expect to hold the file name.

  See Also:
    Constant Field Values

Constructor Detail

### PropertyFileInputHandler

    public PropertyFileInputHandler()

  Empty no-arg constructor.

Method Detail

### handleInput

    public void handleInput(InputRequest request)
                     throws BuildException

  Picks up the input from a property, using the prompt as the name of the property.

  Specified by:
    `handleInput` in interface `InputHandler`
  Parameters:
    `request` - the request to be processed
  Throws:
    `BuildException` - if no property of that name can be found.

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

Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.