Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
exclude-except
swong74
Hallo,
I have the following source config :
- <sourceFilesystem area="/u03/iw-home/custom/logs" filelist="">
- <pathSpecification>
<path name="." />
- <filters>
<excludePattern regex=".*" />
<exceptPattern regex="list2" />
</filters>
</pathSpecification>
</sourceFilesystem>
My understanding was that this should deploy nothing but "list2" file ... however, I've run it several times now and it deployed nothing ... without the exclusions, it deploys everything fine. :-P
Anything I missed?
tnx
-sw
Ciao ?:-)
S. Wong
Find more posts tagged with
Comments
Migrateduser
I think your regex for the exceptPattern may not be correct. Maybe try something like .*list2
Todd Scallan
Group Product Manager
Interwoven
t: 408-530-7167
e:
tscallan@interwoven.com
Migrateduser
Why wouldn't that be correct, Todd? Wouldn't saying
regex="blah"
in an OpenDeploy config be equivalent to saying in perl
m/blah/
? In other words, if it finds the string
blah
anywhere in the input string, it matches? Another good reason for detailed regex documentation for all of TeamSite...
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
swong74
Yeah, what is the regex that OpenDeploy adheres to? There are certain pattern match regex that would work in Perl that I've used in here that failed to work. :-P
And, is it possible to parameterize the regex? ;-) "$" and "^" being regex symbols. I want to make a deployment config that would exclude pattern (instead of path ... that I already have working).
tnx.
Ciao ?:-)
S. Wong
Migrateduser
OK, I knew I shouldn't have posted due to my limited knowledge of regexes. I was thinking that the pattern would be preceded with / or something, since the file name is relative to the area.
Consider the post withdrawn.
Todd Scallan
Group Product Manager
Interwoven
t: 408-530-7167
e:
tscallan@interwoven.com
swong74
you can't get off that quickly ... you gotta help us unravel the mysterious OpenDeploy regex implemenation. ;-)
- sw
Ciao ?:-)
S. Wong
Migrateduser
My other suggestion would be to try using an include filter instead.
But if the regex seems valid, please open a case with support.
Todd Scallan
Group Product Manager
Interwoven
t: 408-530-7167
e:
tscallan@interwoven.com