I want to run an ANT script which prompts the user for input, so it needs to be interactive through the console. at the same time I want to log the console content to a log file.
I know I can use ant >build.log 2<&1
which will redirect to file, but leave the console empty.
因此,如何做到这一点? 窗口和简编的需要。