hey guys, Any clue on how to fix the below error? Still cannot seem to get the validation to pass.
Thanks for any input! ----- Original Message ----- From: Justin Daubenmire To: [email protected] Sent: Tuesday, February 02, 2010 2:52 AM Subject: Re: [ccnet-user] rc1 error using dupfinder Hi Craig, Hey no problem, I am a bit rare :P. I have no clue why the ccnet validator output is working now, but it is. Here is the error I am getting for the dupfinder task: Unable to load array item 'dupfinder' - Cannot convert from type System.String to ThoughtWorks.CruiseControl.Core.ITask for object with value: "*.vb True g:\build\projects\MyApp\Code\App True True 5 600 2 g:\build\tools\DuplicateFinder\DupFinder.exeAssemblyInfo.vb" Xml: <dupfinder><fileMask>*.vb</fileMask> <includeCode>True</includeCode> <inputDir>g:\build\projects\MyApp\Code\App</inputDir> <recurse>True</recurse> <shortenNames>True</shortenNames> <threshold>5</threshold> <timeout>600</timeout> <width>2</width> <executable>g:\build\tools\DuplicateFinder\DupFinder.exe</executable><excludeFiles>AssemblyInfo.vb</excludeFiles></dupfinder> Here is my dupfinder task xml in ccnet.config that it is choaking on: <dupfinder> <fileMask>*.vb </fileMask> <includeCode>True </includeCode> <inputDir>g:\build\projects\MyApp\Code\</inputDir> <recurse>True </recurse> <shortenNames>True </shortenNames> <threshold>5 </threshold> <timeout>600 </timeout> <width>2 </width> <executable>g:\build\tools\DuplicateFinder\DupFinder.exe </executable> <excludeFiles>AssemblyInfo.vb </excludeFiles> </dupfinder> Do you see anything the matter? /Justin ----- Original Message ----- From: Craig Sutherland To: [email protected] Sent: Tuesday, February 02, 2010 2:25 AM Subject: RE: [ccnet-user] rc1 error using dupfinder Hi Justin, I imagine that must make things challenging for you L CCValidator does have a split screen, but the details were not being loaded. Hopefully the changes will make it easier for you. Let us know if there is anything else we can help with - I'll be the first to admit that I haven't had much experience developing software for screen readers. Craig From: [email protected] [mailto:[email protected]] On Behalf Of Justin Daubenmire Sent: Tuesday, 2 February 2010 7:32 p.m. To: [email protected] Subject: Re: [ccnet-user] rc1 error using dupfinder Hi Craig, Ah ha! That explains it. I am a blind computer programmer who uses a screen reader for programming.... jaws for windows found at - www.freedomscientific.com. I am not sure if the cc validator has a split screen, I think it may? but all I could "see" was the error and nothing else to indicate a line number or what exactly was the problem. Thanks for the quick fix. I'll let you know my results! /Justin ----- Original Message ----- From: Craig Sutherland To: [email protected] Sent: Monday, February 01, 2010 10:23 PM Subject: RE: [ccnet-user] rc1 error using dupfinder Hi Justin, I copied and pasted your config below and I get an error. This is caused by a missing < in the config - on line 3 you have missed the <. This raises an issue with CCValidator not displaying meaningful error messages, plus displaying incorrect configuration. I have made a couple of quick changes to CCvalidator to try and correct these problems. Can you please get the latest build from ccnetlive and see if it is any better. Craig From: [email protected] [mailto:[email protected]] On Behalf Of Justin Daubenmire Sent: Tuesday, 2 February 2010 12:49 p.m. To: [email protected] Subject: Re: [ccnet-user] rc1 error using dupfinder Hey Ruben, The below advice did not work. Now this silly situation gets worse. I updated to the latest nightly build from feb 1 2010 - CruiseControl.NET-1.5.6814.1-Setup.exe. Now when I validate the ccnet.config file, which includes the dupfinder task, I get this error: CruiseControl.....Net Validation Results Configuration contains invalid XML: The configuration file contains invalid xml: G:\build\tools\CruiseControl.NET\server\ccnet.config When I remove the dupfinder task, it passes validation! This is all with the ccnet service disabled. Help! Anyone? :D Any ideas? /Justin ----- Original Message ----- From: Ruben Willems To: [email protected] Sent: Monday, February 01, 2010 2:31 AM Subject: Re: [ccnet-user] rc1 error using dupfinder Hi this sounds weird .... I would do the following : ° stop cc service / cc console ° check the config (see that the <fileMask>*.vb</fileMask> is there) ° validate this should work with kind regards Ruben Willems On Mon, Feb 1, 2010 at 7:31 AM, Justin Daubenmire <[email protected]> wrote: Hey guys, Here is something I just tried and wanted to report it. I left the dupfinder task uncommented and the cc validator said the ccnet.config file was not valid... unused node detected. I went to the web dashboard and there was no errors displayed related to the ccnet.config file being invalid. I forced a build and the build worked and was successful. However, the dupfinder task was never ran nor showed up in the ccnet.log file. The dupfinder task is uncommented in the ccnet.config file. It is though cc validator says it is invalid and the ccnet service just skips it but nothing shows up in the ccnet.log file and it was as though it was never ran even though it is uncommented and in place. I also opened up ccnet.config within vs 2008 just to validate that all xml was properly closed and there were no errors. There is something causing this problem. Is there anything else I can get you guys to help diagnose this situation? Any ideas? /Justin ----- Original Message ----- From: Ruben Willems To: [email protected] Sent: Sunday, January 31, 2010 2:19 PM Subject: Re: [ccnet-user] rc1 error using dupfinder Hi yep it passes if i past it in, and when I commented it out, and re-validate, it fails weird ... with kind regards Ruben Willems On Sun, Jan 31, 2010 at 7:42 PM, Justin Daubenmire <[email protected]> wrote: Hi Ruben, Here is my complete xml, including the missing fileMask for dupfinder, and it does not pass ccnet validation on my end - it errors saying unused node detected. Can you please copy/paste the below xml into a ccnet.config on your end and validate it and see if it passes? Thanks! <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> <fileMask>*.vb</fileMask> <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>
