next up previous contents index
Next: Jar Up: Input Previous: Parameters   Contents   Index

Examples

  <input/>
Will pause the build run until return key is pressed when using the default InputHandler, the concrete behavior is defined by the InputHandler implementation you use.
  <input>Press Return key to continue...</input>
Will display the message "Press Return key to continue..." and pause the build run until return key is pressed (again, the concrete behavior is implementation dependent).
  <input
    message="Press Return key to continue..."
  />
Will display the message "Press Return key to continue..." and pause the build run until return key is pressed (see above).
  <input
    message="All data is going to be deleted from DB continue (y/n)?"
    validargs="y,n"
    addproperty="do.delete"
  />
  <condition property="do.abort">
    <equals arg1="n" arg2="${do.delete}"/>
  </condition>
  <fail if="do.abort">Build aborted by user.</fail>
Will display the message "All data is going to be deleted from DB continue (y/n)?" and require 'y' to continue build or 'n' to exit build with following message "Build aborted by user.".
  <input
    message="Please enter db-username:"
    addproperty="db.user"
  />
Will display the message "Please enter db-username:" and set the property db.user to the value entered by the user.



Andrew Marlow 2003-07-08