I have added few system.in inputs (user inputs) in an interactive way. I have created executable jar and I am using apache ant to compile and run the program. When I execute it with java -jar jarfile.jar, the program interacts fine and take the user input through buffered reader system.in, but when I run it through apache ant by ant run, it hangs after taking first input.
Why with apache ant, it is not taking System.in inputs typed through keyboard?
Do I have to add something in the run target java task of apache ant?