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

I looked through the nant and sourceforge faq documentation and cannot find the answer to this question. The exec task in nant places () around the command line options that it generates, so for example, this task generates below:

mallow (-1)

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

Another open source tool I use, mallow, cannot handle this.

Does anyone know how to stop nant by putting () around arguments?

Thank.

+5
source share
1 answer

NAnt doesn't really put parentheses around arguments, it just looks like 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>

-1 0 1, (-1 0 1), ,

echo (-1 0 1)

.

+5

All Articles