Dashboard > CruiseControl.NET > ... > Using CruiseControl.NET with other applications > Using CruiseControl.NET with Vil
Using CruiseControl.NET with Vil Log In | Sign Up   View a printable version of the current page.  
CruiseControl.NET documentation for latest CI builds
Added by Mike Roberts , last edited by Mike Roberts on Mar 08, 2005

This page shows how you can integrate Vil, a code metrics tool, into your CruiseControl .NET build.

This update was provided by Wojciech Zimirski.

Run Vil as part of your integration

After downloading and installing VIL, you have to setup your project to generate VIL report.
If you are using NAnt for building your project then add the following to your NAnt build:

<property name="vil.assemblies" value="comma,separated,list,of,assemblies,to,analyze (full path)" />

    <target name="vil">
        <exec program="${vil.executable}" commandline='/a="${vil.assemblies}" /outxml="${results.dir}results-vil.xml" /m classes,enumerations,structs,types,LOC,events,impInterfaces,WMC,DIT,CBO,RFC,NOC,constructors,methods,imps,fields,properties /sc=type' failonerror="false"/>
    </target>

The next step is to merge the Vil report file into the integration result using the File Merge Task. Your CruiseControl.NET Server config file will have something in it like :

<tasks>
    <merge>
        <files>
            <file>d:\your\project\build\reports\results-vil.xml</file>
            <!-- Other files to merge for your build would also be included here -->
      	</files>
    </merge>
</tasks>

Configure the Web Dashboard to show Vil results

To show Vil results on the Web Dashboard, use a XSL Report Build Plugin with the XSL File vil.xsl. Refer to the Web Dashboard documentation for help on adding new plugin configuration.

Powered by a free Atlassian Confluence Open Source Project License granted to ThoughtWorks, Inc.. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators