开发者

How to stop nant exec task putting ( ) around command line

开发者 https://www.devze.com 2022-12-26 16:24 出处:网络
I have looked through the nant documentation and sourceforge faq and can\'t find the answer to this question.The exec task in nant puts ( ) around the command line parameters it generates, so for exam

I have looked through the nant documentation and sourceforge faq and can't find the answer to this question. The exec task in nant puts ( ) around the command line parameters it generates, so for example this task below would generate:

mallow ( -1 )

    <exec program="${build.tools.wix}\mallow.exe"
  workingdir="${build.out.xxx}">
      <arg value="-1" />
    </exec> 

The other open source tool I'm using - mal开发者_开发百科low - cannot handle this.

Does anyone know of a way to stop nant putting the ( ) around the arguments?

Thanks.


NAnt does not actually put parentheses around the arguments, it just looks like that when you use verbose as in

<target name="test">
    <exec program="echo" verbose="True">
        <arg value="-1" />
        <arg value="0" />
        <arg value="1" />
    </exec>
</target>

from which the output is -1 0 1, and not (-1 0 1) as it would be if you ran

echo (-1 0 1)

directly from the command line.

0

精彩评论

暂无评论...
验证码 换一张
取 消