I\'m developing application with Netbeans and Maven. My application should obtain data from stdin. But I could not understand how to test it. Putting < data.txt
Add a new target "run-input" under Files->build.xml with the following text. Note: this version uses the correct location of the java runtime. Also, it assumes that you have made a directory called inputs with the file input1.
You can always create a shortcut for this new target.