【发布时间】:2011-11-07 14:35:13
【问题描述】:
我想使用 NAnt 执行声纳来扫描我的 C# 代码。声纳命令行是“mvn sonar:sonar”,其中“mvn”是命令名,“sonar:sonar”是用户名和密码。 我尝试了两种执行方式:
1.
<target name="buildOM" description="......">
<exec program="mvn" workingdir="C:\codes\projects\helloworld">
<arg value="sonar:sonar"/>
</exec>
</exec>
2.
<target name="buildOM" description="......">
<exec program="mvn sonar:sonar" workingdir="C:\codes\projects\helloworld">
</exec>
</exec>
但是这些不起作用。我找到了 Ant 的“输入”标签。 “Ant : Passing username and password to exec”。但我在 NAnt 帮助文档中找不到它。 我尝试在互联网上搜索解决方案 2 天,但失败了。
你能帮我解决它吗? 谢谢。
【问题讨论】:
标签: maven input exec nant sonarqube