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

后端 未结 7 2029
情歌与酒
情歌与酒 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:10

    Maybe you want to look at the error, logError, and errorproperty attributes of the exec task too. These deal with the handling of the standard error stream from the exec'd process. There may be useful information there that is going awol for some reason - which might account for the incompleteness you see.

    But, if the exec'd process decides to close stdout or stderr and send them elsewhere - there's little you can do.

提交回复
热议问题