Hello,
I’m still fairly new to Perl. As a build manager I search through the build log and if I find an error, the build is deemed failed.
What I'm trying to figure out, is how to extract from the build log the name of the specific VS project that failed. I'd like to put this information in my build e-mail.
For example, here are two projects in the build log:
------ Rebuild All started: Project: test1, Configuration: Release Win32 ------
Performing Makefile project actions
Copying updated dictionary to test folder
1 file(s) copied.
The system cannot find the file specified.
NMAKE : fatal error U1077: 'copy' : return code '0x1'
Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
Build log was saved at "file://c:\test\build.htm"
Test1 - 2 errors, 0 warnings
------ Rebuild All started: Project: test2,
Configuration: Release .NET ------
Updating references...
Performing main compilation...
Build complete -- 0 errors, 0 warnings
Obviously Project: test1 is what failed, but how do I extract that project name? I can find the string "2 errors" but can't figure out the rest.
Any help would be greatly appreciated. I'm pulling out my hair with this one.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.