任何人都可以帮助我将参数(例如:URL)从 CruiseControl.net ccnet.config 文件传递到 NANT name.build 文件吗?
以下是我尝试过的(但没有成功)
**CC.net file**
<tasks>
<nant>
<executable>C:\Program Files (x86)\NANT\nant-0.92\bin\nant</executable>
<buildFile>C:\Program Files (x86)\NANT\nant-0.92\RiDM.Build</buildFile>
<targetList>
<target>build</target>
</targetList>
<buildArgs>-D:myProp=C:\build</buildArgs>
</nant>
</tasks>
**.build file**
<?xml version="1.0"?>
<project name="Parameter test File" >
<description>Test parameter passing among Cruise control and NANt files.enter code here </description>
<echo message="This is echo" />
<if test="${property::exists('myProp')}" />
<echo message="URL: ${myProp}" />
<echo message="This is also echo" />
</project>