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:
java -jar test.jar page.xml | mysql -u user -p base
Another solution would be to wrap the java -jar test.jar page.xml | mysql -u user -p base into a separate script and call it with simple task.