In the Mojarra build file, we do this:
echo a > input
java -Xmx256m -jar ${dependency.base.dir}/${glassfish.installer.jar} -console < ./input
which works well for us. From the hip, I think
echo a | java -Xmx256m -jar ${dependency.base.dir}/${glassfish.installer.jar} -console
might work too.
[Message sent by forum member 'jdlee' (jdlee)]
http://forums.java.net/jive/thread.jspa?messageID=265037