AUTOMATING ANT SCRIPT

I have an automated script running ant, but the some operations I do , need to type the command, give the answers.
If I have something like this:

ant -f file.xml -t pdf -o output_example ...
Where t=target, o=output...

And the other options.
Doing that, I could run ant without someone typing need.