I must to implement command : java -jar test.jar page.xml | mysql -u user -p base
in ant. So i Have tried with this task:
The pipe (|) can only be used in a shell script. You're passing it as an argument to the java process.
So you need to execute a shell script. You can do this by executing (say) bash -c
and passing the above as a shell statement (albeit inline - you could write a separate script file but it seems a bit of an overhead here)