How can I ensure all output from Ant's exec task goes to stdout?

后端 未结 7 1982
情歌与酒
情歌与酒 2020-12-09 09:52

The Ant exec task has an output property which can be used to tell Ant where the output goes. I\'ve used it to redirect the output to a file. The thing is, if I

7条回答
  •  时光说笑
    2020-12-09 10:17

    If you want to output to System.out, then simply do not specify the "output" attribute. If you would like to redirect to a file AND print it to System.out, you can use the tee command, which will redirect output to a given file and also echo it to standard out... I do not know if Windows supports "tee" or an equivalent.

提交回复
热议问题