I have a NAnt call in my ccnet.config file which calls multiple
targets e.g.
<nant>
<executable>C:\Program Files\nant\bin\NAnt.exe</executable>
<buildTimeoutSeconds>3600</buildTimeoutSeconds>
<buildFile>bin\nant.build</buildFile>
<buildArgs>-D:publish.base.dir="\\svrstr01\builds\Verification
\"</buildArgs>
<targetList>
<target>clean</target>
<target>main</target>
<target>dist</target>
</targetList>
</nant>
The nant.build file has a default target specified as main. For some
reason it seems that only the default target is being called by
ccnet. If I modify the above to only include the clean target, the
web dashboard correctly reports that the clean target is being called,
but in actual fact it is the main target that is called. I have other
nant blocks for this project that make multiple calls to different
targets in a different nant.build file which are all called properly.
The nant.build file works fine from the command line.
Are there any known issues where the default target in a nant.build
file takes preference to the targets specified in the targetList? Or
has anyone got any other suggestions about what might be going on?
Thanks.