Community
Participate
Working Groups
Created attachment 287504 [details] Screenshot showing input I have a simple Java program that creates a Scanner(System.in) reading an integer from standard input. When running the program via Ant Build (<java jar="..." fork="true"> rule) in Eclipse (via Run or Run As), the program starts up normally, opens a Console, waits for input, but then nothing typed into the Console gets passed to the app. Console does not appear to be connected to standard input. I tested using defaults as well as trying different Runtime JRE's. Confirmed that "Set an Input Handler" is checked on the Main tab under the Edit Configuration panel. The same code works when run outside of Eclipse (via ant or not). It also works if I add an ant <input ..> prompting and pass it via <java .. inputstring="${var}"/> as it graphically prompts for input when run in Eclipse. This bug may be specific to Mac. I'm not set up to test on other platforms.
Please attach your project with the ant script and the program.
Created attachment 287505 [details] Sample code demonstrating the issue This attachment contains sample code demonstrating the issue. Simply open the build.xml, right-click the "run" target to Run As... and select the "run" target (curiously defaults to the 'info' target). Console will display and prompt for input. Typing input into the console does not appear to get passed to the app.