我试图使用以下目标在我的ant脚本中添加一些标签信息,但我得到了一个错误(Result=-1),hg告诉我它无法识别该命令:
<target name="-post-init">
<exec outputproperty="hg.tag" executable="hg">
<arg value="parents --template {latesttag}+{latesttagdistance}" />
</exec>
</target>如果我只包含value="parents",它就能正常工作。
如果我运行命令行hg parents --template {latesttag}+{latesttagdistance},它也能正常工作。
你知道我的语法有什么问题吗?
发布于 2012-04-19 03:56:44
我试过了,它工作得很好:
<exec outputproperty="hg.tag" executable="hg">
<arg value="parents" />
<arg value="--template" />
<arg value="{latesttag}+{latesttagdistance}" />
</exec>我需要把争论分开。
https://stackoverflow.com/questions/10216843
复制相似问题