Java ANT Question:

Do you know how to make ant user interactive?

Tweet Share WhatsApp

Answer:

The org.apache.tools.ant.input.InputHandler interface is used to implement the user input. To perform the user input, the application creates InputRequest object and this object will be passed to InputHandler. The user input will be rejected if it is invalid.

The InputHandler interface has exactly one method, by name handleInput(InputRequest request). This method throws org.apache.tools.ant.BuildException, if the input is invalid.

Download ANT PDF Read All 11 ANT Questions
Previous QuestionNext Question
What is the concepts and capabilities of ANT?How to write your own ant task?