in reply to Extract failed VS project name from build log
As long as each project starts with a like like the 'Rebuild All started' line and projects are not interlaced in the file it should extract the correct project.my $project = ''; while (<BUILDLOG>) { if (/Project: (.+), Configuration/) { $project = $1; } if (/- (\d+) errors?, (\d+) warnings?/) { if ($1 > 0) { print "$1 errors for project $project\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Extract failed VS project name from build log
by yankeeblue (Novice) on May 19, 2004 at 20:09 UTC |