I am still looking into the issue of the [solution] task exiting after the first error, instead of continuing to build the remainder of the solution file.
I would like to know if there are any other settings that I can set that will allow the entire solution file to continue building, even if one or more of the projects within it fails to build. Again I am simply using the [solution] task and have set failonerror=false so that it will not stop the build. So the build does not stop, but the building of the individual solution files will stop at the failed project and then end the solution task saying that it is finished building the current solution. My build file builds multiple solution files and after each one is complete I run a validation step to verify that the files that were suppose to be built were built. So if the solution exists before building all the projects then my validation step will give me a false positive, meaning that it will show the correct files that failed to build, but some of the files are listed because they were to be created, but the solution exited before those projects could be built.... So if anyone knows of a way to make NAnt continue building the current solution file, even after some projects failed to build, then I would really appreciate hearing from you!!!! How do others handle this issue? Is there another way to handle the solution files so as to build the entire solution? Thanks, Tim Mayert. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Mayert Sent: January 13, 2006 7:14 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Nant build solution task stopping on first error I am using the solution task to build the entire project solution and I set failonerror=false so that all projects in the solution file will attempt to build even it one or more of the project files fails to build. This was working for the most part, but now it seems to stop on the first error and does not attempt build any of the other project files. Here is the ending of the log file after the first build errors were encountered: [solution] External Program Failed: cl (return code was 2): [solution] NAnt.Core.BuildException: External Program Failed: cl (return code was 2) [solution] at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() in d:\Source\nant-20051112T154456Z\src\NAnt.Core\Tasks\ExternalProgramBase. cs:line 315 [solution] at NAnt.VisualCpp.Tasks.ClTask.ExecuteTask() in d:\Source\nant-20051112T154456Z\src\NAnt.VisualCpp\Tasks\ClTask.cs:line 426 [solution] at NAnt.Core.Task.Execute() in d:\Source\nant-20051112T154456Z\src\NAnt.Core\Task.cs:line 171 [solution] at NAnt.VSNet.VcProject.ExecuteInProjectDirectory(Task task) in d:\Source\nant-20051112T154456Z\src\NAnt.VSNet\VcProject.cs:line 1500 [solution] at NAnt.VSNet.VcProject.BuildCPPFiles(ArrayList fileNames, String solutionConfiguration, VcConfigurationBase fileConfig) in d:\Source\nant-20051112T154456Z\src\NAnt.VSNet\VcProject.cs:line 796 [solution] at NAnt.VSNet.VcProject.Build(String solutionConfiguration) in d:\Source\nant-20051112T154456Z\src\NAnt.VSNet\VcProject.cs:line 331 [solution] at NAnt.VSNet.ProjectBase.Compile(String solutionConfiguration) in d:\Source\nant-20051112T154456Z\src\NAnt.VSNet\ProjectBase.cs:line 342 [solution] at NAnt.VSNet.SolutionBase.Compile(String solutionConfiguration) in d:\Source\nant-20051112T154456Z\src\NAnt.VSNet\SolutionBase.cs:line 263 [solution] at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in d:\Source\nant-20051112T154456Z\src\NAnt.VSNet\Tasks\SolutionTask.cs:lin e 408 [solution] at NAnt.Core.Task.Execute() in d:\Source\nant-20051112T154456Z\src\NAnt.Core\Task.cs:line 163 [echo] Finished building the current solution: D:\Projects\Notebook\Notebook Only and Components.sln, configuration: Unicode Release. Nothing in my Nant scripts have changed and unless all the other builds were error free and therefore this did not show up before. Does anyone know how to make sure the build will continue all the way through? Anything that I am missing? Thanks, Tim Mayert. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users