如何将nDepend输出定向到CruiseControl.Net上的artifacts文件夹?

时间:2010-09-29 16:13:03

标签: cruisecontrol.net ndepend

<cb:define subversionpath="c:\Program Files\Subversion\bin\svn.exe"

    msbuild4="C:\WINNT\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
    msbuild35="C:\WINNT\Microsoft.NET\Framework\v3.5\MSBuild.exe"
    nDependPath="C:\Progra~1\NDepend"
    standardlogger="ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll"
    nDependReportPath="C:\app\NDepend\NDependOut"
    CCNetDisplayedReport="SymbolCCByGroup"
    />  

在项目中我有以下

 <ndepend>
    <project>d:\ccnet\app.ndproj</project>
    <executable>$(nDependPath)\Ndepend.Console.exe</executable>
    <outputDir>$(nDependReportPath)</outputDir>
    <inputDirs>
            <inputDir>c:\bin\app</inputDir>
            <inputDir>c:\bin\app\_PublishedWebsites\bin</inputDir>
        </inputDirs>
    <emitXml>true</emitXml>
    <publish>true</publish>
    </ndepend>

但是我想将outputDir作为ccnet artifactsfolder / buildlabel,我该怎么做呢?如果我删除了我的内容,它是默认设置吗?

1 个答案:

答案 0 :(得分:1)

要在构建日志中查看NDepend结果,您必须手动合并ndepend和构建日志中的输出文件,您必须将xsl转换添加到dashboard.config和ccnetservice.exe.config文件中,因为它在说: http://confluence.public.thoughtworks.org/display/CCNET/Using+CruiseControl.NET+with+NDepend

如果是否合并,你希望你的ndepend输出在工件目录中,你可以在你的情况下在ouputDir字段$(nDependReportPath)中指定它。整个文档都在这里: http://confluence.public.thoughtworks.org/display/CCNET/NDepend+Task

ccnet环境变量列表可以在这里找到(在页面末尾): http://ccnetlive.thoughtworks.com/ccnet/doc/CCNET/Executable%20Task.html