【发布时间】:2015-03-31 09:49:51
【问题描述】:
我在 SO How to filter the xcodebuild command line output? 看到了这个命令
当我们执行 xcodebuild 时只显示错误和警告,否则 xcodebuild 命令会将所有关于它正在做什么的内容打印到控制台。
有没有办法在 ant 任务中使用 grep 和 xcodebuild?
<exec executable="xcodebuild" failonerror="true">
<arg value="| grep error" />
<arg value="clean" />
<arg value="build" />
</exec>
上面的 exec 任务在尝试执行 ant 任务时抛出错误。
【问题讨论】:
标签: ant xcodebuild