Cruisecontrol.net 是否可以将参数发送到Nant任务?
我希望有一个nant任务,根据构建类型将代码构建到dev/test文件夹中。我希望使用不同的参数dev/test从CruiseControl.NET调用Nant task,而不是使用不同的文件夹重复任务/目标 然后,nant任务将根据输入参数为输出文件夹定义一个属性。我想我需要某种“if”语句来测试参数并定义正确的参数 有什么办法吗?Cruisecontrol.net 是否可以将参数发送到Nant任务?,cruisecontrol.net,nant,Cruisecontrol.net,Nant,我希望有一个nant任务,根据构建类型将代码构建到dev/test文件夹中。我希望使用不同的参数dev/test从CruiseControl.NET调用Nant task,而不是使用不同的文件夹重复任务/目标 然后,nant任务将根据输入参数为输出文件夹定义一个属性。我想我需要某种“if”语句来测试参数并定义正确的参数 有什么办法吗? 谢谢。您使用的是什么版本的CCNet 版本1.5能够将参数向下传递给NAnt,并且似乎工作得很好。您使用的是哪一版本的CCNet 版本1.5能够将参数向下传递给N
谢谢。您使用的是什么版本的CCNet
版本1.5能够将参数向下传递给NAnt,并且似乎工作得很好。您使用的是哪一版本的CCNet 版本1.5能够将参数向下传递给NAnt,并且似乎工作得很好。键入:
nant -help
显示您可以按如下方式定义属性:
-D:name=value
要在脚本中测试它,请执行以下操作:
if="${property:exists('name')}"
在CCNet中,您可以使用以下工具运行它:
<tasks>
<nant>
<executable>nant.exe</executable>
<buildFile>script.build</buildFile>
<targetList>
<target>build</target>
</targetList>
<buildArgs>-D:defaultPath=C:\build</buildArgs>
<buildTimeoutSeconds>600</buildTimeoutSeconds>
</nant>
</tasks>
nant.exe
script.build
建造
-D:defaultPath=C:\build
600
键入:
nant -help
显示您可以按如下方式定义属性:
-D:name=value
要在脚本中测试它,请执行以下操作:
if="${property:exists('name')}"
在CCNet中,您可以使用以下工具运行它:
<tasks>
<nant>
<executable>nant.exe</executable>
<buildFile>script.build</buildFile>
<targetList>
<target>build</target>
</targetList>
<buildArgs>-D:defaultPath=C:\build</buildArgs>
<buildTimeoutSeconds>600</buildTimeoutSeconds>
</nant>
</tasks>
nant.exe
script.build
建造
-D:defaultPath=C:\build
600