Need to use preconditions result in ant script

Hi ,


I want to check some preconditions and on fail of that, I would like to display a user input warning message , Say Do you want to continue? (y/n) if yes then continue else stop updating.


Its very urgent.


Please reply ASAP.


Thanks in advance.


User