Sorry, I forgot to paste that into the xml. I do have that on my end, and it 
does not pass cc validation. It still states unused node detected. If you add 
that attribute in the xml, does it pass on your end?

/Justin

  ----- Original Message ----- 
  From: Ruben Willems 
  To: [email protected] 
  Sent: Sunday, January 31, 2010 11:15 AM
  Subject: Re: [ccnet-user] rc1 error using dupfinder


  Hi

  The error of CCValidator :
  Missing XML node (fileMask) for required member ...

  the fileMask is required, see the docs at
  http://confluence.public.thoughtworks.org/display/CCNET/Duplicate+Finder+Task



  with kind regards
  Ruben Willems



  On Sun, Jan 31, 2010 at 3:45 PM, Justin Daubenmire <[email protected]> 
wrote:

    Hi,

    Here is my complete ccnet.config with the dupfinder task commented out. If 
you paste this in and run the cc validator on it - it will pass. If you 
uncomment the dupfinder block and run cc validator on it it will fail saying 
unused node detected. Please let me know your results.

    <cruisecontrol xmlns:cb="urn:ccnet.config.builder">
        <project name="MyApplication">
        
workingDirectory>G:\Build\projects\MyApplication\code\</workingDirectory>
        
<artifactDirectory>G:\Build\Projects\MyApplication\Artifacts\</artifactDirectory>
        <webURL>http://MyServer/ccnet/</webURL>
        <modificationDelaySeconds>10</modificationDelaySeconds>
        <triggers>
          <intervalTrigger name="continuous" seconds="60" 
buildCondition="IfModificationExists" initialSeconds="30"/>
        </triggers>
              <labeller type="assemblyVersionLabeller">
                <major>1</major>  
                <minor>0</minor>
                <incrementOnFailure>true</incrementOnFailure>
              </labeller>
              <sourcecontrol type="svn" autoGetSource="true">
    <executable>g:\Program Files\VisualSVN Server\bin\svn.exe</executable>
       <workingDirectory></workingDirectory>
       <username>foo</username>
    <password>foo</password>
    
<trunkUrl>https://MyApplication.MySVNServer/MyApplication/branches/experimental</trunkUrl>
    </sourcecontrol>
        <tasks>
         <nant>
            <executable>G:\Build\Tools\Nant\bin\nant.exe</executable>
            <baseDirectory>G:\Build\Scripts\</baseDirectory>
            <nologo>true</nologo>
            <buildFile>VersionAssemblies.build</buildFile>
            <logger>NAnt.Core.XmlLogger</logger>
            <targetList>
              <target>version-assemblies</target>
            </targetList>
            <buildTimeoutSeconds>6000</buildTimeoutSeconds>
          </nant>
          <msbuild>
    <executable>g:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
            <workingDirectory></workingDirectory>
            <projectFile>MyApplication.sln</projectFile>
            <timeout>900</timeout>
    
<logger>G:\Build\tools\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
          </msbuild>
    <nant>
    <executable>G:\Build\Tools\Nant\bin\nant.exe</executable>
    <baseDirectory>G:\Build\Scripts</baseDirectory>
    <nologo>true</nologo>
    <buildFile>MyApplication.build</buildFile>
    <logger>NAnt.Core.XmlLogger</logger>
    <targetList>
    <target>run-reports</target>
    </targetList>
    <buildTimeoutSeconds>6000</buildTimeoutSeconds>
    </nant>
    <!--
    <dupfinder>
      <includeCode>True</includeCode> 
      <inputDir>g:\MyApplication\Code</inputDir> 
      <recurse>True</recurse> 
      <shortenNames>True</shortenNames> 

      <threshold>5</threshold> 
      <timeout>600</timeout> 
      <width>2</width> 

    <executable>g:\build\tools\DuplicateFinder1.5\DupFinder.exe</executable>
    <excludeFiles>AssemblyInfo.vb</excludeFiles>
    </dupfinder>
    -->
        </tasks>
        <publishers>
          <merge>
            <files>
    <file>G:\Build\Projects\MyApplication\Artifacts\nunit-results.xml</file>
    <file>G:\build\projects\MyApplication\artifacts\CoverageReport.xml</file>
    <file>G:\build\projects\MyApplication\artifacts\CoverageMerge.xml</file>
    <file>G:\build\projects\MyApplication\artifacts\Coverage.xml</file>
            </files>
          </merge>
          <xmllogger />
          <rss/>
          <statistics />
          <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
          <modificationHistory  onlyLogWhenChangesFound="true" />
        </publishers>
    </project>
    </cruisecontrol>

      thanks.


      /Justin

      ----- Original Message ----- 
      From: Ruben Willems 
      To: [email protected] 
      Sent: Sunday, January 31, 2010 7:20 AM
      Subject: Re: [ccnet-user] rc1 error using dupfinder


      Hi


      I just tried it, and it worked.

      my test project : 
          <project name="MyFirstProject" >
              <tasks>
                  <dupfinder> 
                    <dynamicValues /> 
                    <fileMask>*.cs</fileMask> 
                    <includeCode>False</includeCode> 
                    <inputDir>Code</inputDir> 
                    <recurse>False</recurse> 
                    <shortenNames>False</shortenNames> 
                    <threshold>5</threshold> 
                    <timeout>600</timeout> 
                    <width>2</width> 
                  </dupfinder>

              </tasks>


          </project> 



      no errors in CCValidator, and the console worked ok.
      Can you double check your config, maybe something else is causing it.


      with kind regards
      Ruben Willems


      On Sun, Jan 31, 2010 at 5:06 AM, Justin Daubenmire 
<[email protected]> wrote:

        Guys,

        I have installed rc1 for v 1.5 and the ccnet validator is saying  
ccnet.config is not valid - unused node detected for the dupfinder task. All I 
did was copy/paste the  dupfinder sample syntax from the documentation into the 
<tasks> section...
        <tasks>
        ...
        <dupfinder> 
          <dynamicValues /> 
          <fileMask>*.cs</fileMask> 
          <includeCode>False</includeCode> 
          <inputDir>Code</inputDir> 
          <recurse>False</recurse> 
          <shortenNames>False</shortenNames> 
          <threshold>5</threshold> 
          <timeout>600</timeout> 
          <width>2</width> 
        </dupfinder>
        </tasks>


        and the cc validator will not pass. If I remove the sample xml 
dupfinder copy/pasted in from the documentation, the validation passes.


        Is the sample syntax incorrect in the documentation?

        /Justin



Reply via email to