从netcans项目中的ant构建脚本中的exec获取输出

时间:2013-06-24 09:23:14

标签: apache netbeans ant output

我在netbeans项目中的ant build脚本中运行一个宏,在这个宏中称为exec操作。在宏中我可以写一些东西到netbeans项目的运行控制台,但是如果我想在执行exec语句期间写一些东西呢?像exec的输出一样?

感谢您的回答, O操作。

1 个答案:

答案 0 :(得分:1)

使用 resultproperty 属性。这篇文章解释了它:How to get a return value from an exec in ant script