Cannot get <alert fileRegExpr> to ever match
TODD TRIMMER <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
I am having trouble understanding the fileRegExpr attribute for the <alert>
element, nested under the <email> or <htmlemail> publishers. First of all,
the configuration reference led me to believe this value was a Perl5 type
regular expression. However, after looking in the source code, it seems more
the user is expected to supply a glob pattern (which internally is converted
to a Perl5 regex). I have tried various glob expressions in vain to match my
files. I can't figure out the exact syntax it expects, and I'm not sure if
the file path syntax my SCM bootstrapper (Perforce) produces confuses
things.
My build log produces modification entries like this:
<file>//depot/project/branch/db/migration/migrate-2.8.1.sql</file>
<file>//depot/project/branch/db/migration/migrate-2.8.2.sql</file>
1. The leading "//" is a Perforce notation. Does this throw off the glob
matching?
2. Can a fileRegExpr match just the last part of a file path, e.g. "*.sql"
would match both files above? Or do I have to give a longer expression, e.g
"*/*.sql" or something similar?
3. What if I only wanted to match files under a certain directory? Can I use
"migration/*.sql"?
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user