Required Content precondition - how to configure, syntax etc
Sorry - I'm afraid I've found no doc, forum posts etc that help...
I'm trying to set up the Required Content precondtion for deliveries to ensure that some mandatory strings are present in delivered files matching certain file patterns.
I've tried all sorts of combinations of syntax for the file pattern and required text, but to no avail. Does someone have an example, or some doc that explains exactly how to configure this so it works?
I've tried file patterns like: .cpp, .hpp, .c, .h
*.cpp (doesn't like that)
"*.cpp"
I've tried all sorts of required text entries as well.
One issue is that I'm not aware of any method to "debug" the rule - so have no idea which part of the precondition is not working the way I want.
Tips, advice appreciated!
Thanks.
Simon.
I'm trying to set up the Required Content precondtion for deliveries to ensure that some mandatory strings are present in delivered files matching certain file patterns.
I've tried all sorts of combinations of syntax for the file pattern and required text, but to no avail. Does someone have an example, or some doc that explains exactly how to configure this so it works?
I've tried file patterns like: .cpp, .hpp, .c, .h
*.cpp (doesn't like that)
"*.cpp"
I've tried all sorts of required text entries as well.
One issue is that I'm not aware of any method to "debug" the rule - so have no idea which part of the precondition is not working the way I want.
Tips, advice appreciated!
Thanks.
Simon.
2 answers
I'm trying to set up the Required Content precondtion for deliveries to ensure that some mandatory strings are present in delivered files matching certain file patterns.
I've tried all sorts of combinations of syntax for the file pattern and required text, but to no avail. Does someone have an example, or some doc that explains exactly how to configure this so it works?.
The precondition uses the Java regular expression syntax. There may be better examples out there, but this is what I use for reference: http://www.jdk5.ru/api/java/util/regex/Pattern.html
- Jared
I'm trying to set up the Required Content precondtion for deliveries to ensure that some mandatory strings are present in delivered files matching certain file patterns.
I've tried all sorts of combinations of syntax for the file pattern and required text, but to no avail. Does someone have an example, or some doc that explains exactly how to configure this so it works?.
The precondition uses the Java regular expression syntax. There may be better examples out there, but this is what I use for reference: http://www.jdk5.ru/api/java/util/regex/Pattern.html
- Jared
Thanks Jared - I'll give this a shot.