Ant run command with pipes

后端 未结 6 899
温柔的废话
温柔的废话 2020-12-13 19:25

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:



        
6条回答
  •  萌比男神i
    2020-12-13 20:01

    There you are actually running a java command.

    You need to use Exec task http://ant.apache.org/manual/Tasks/exec.html but not sure if there also you can run piped commands or not. Give it a try.

提交回复
热议问题