Ant exec task: How can I read input from stdin console?

I have a call to an Ant task execthat should receive input from the stdin console. Unfortunately, I cannot find a way to do this. The stdin descriptor file seems to be closed to console input at runtime.

You can specify input using the inputand attributes inputstring. However, I need to request user input on the console.

How can i do this?

+5
source share
1 answer

From the task documentation :

, , inputstring. , Ant 1.6, EOF (-1). Ant 1.5, .

input-task, ant -build inputstring- exec. .

+2

All Articles