Tuesday, 7 January 2014

Accept user input in Apache Ant

In Apache Ant, you can use the Input task in build.xml to accept user input. Check out the following illustration.

Eg:


As you see in the Input task, we specify the message that should get displayed asking for user input. 
The user input is then stored in a property named "my-name" in this case.
The valid arguments i.e the valid options are mentioned in the validargs parameter.

A detailed technote can be read here.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker