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)
excludePattern
wmh
Good day all.
I am hoping some of the Regex pro's here will be able to help me. I want to add an excludePattern in the cfg file of OD to exclude all files except 1 on a reverse deploy. Since this is a reverse deploy and we want to re-use this code on multiple servers and deployments, I believe it would be better this way than to place filelist files on each of the servers for each deployment.
The negate statement of [^(filename)] did not work, even though (filename) did exclude the one file.
The files come in as ./filename according to the logs.
Thank you for any help.
Find more posts tagged with
Comments
Migrateduser
It might help if you described
exactly
what you are trying to accomplish. Were you aware that the 5.6 version of OD has an
include
option as well as an
exclude
option? That might solve your problem right there. Saying you want to exclude all files except one is not a description that people can help with. Please describe in detail what you are trying to do.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
wmh
After doing a larger search I found the solution. It was in one of your threads Dave.
Thank you for taking the time to look at this. We have 5.5.1. The include statement is something that will be very helpful in 5.6
I will still see if there is a cleaner solution though.
The file will be only in the root of the path. The file name will be like
newsite.ear
This will be in a directory of about 30-50 other ear files as well as misc other file.
Edited by wmh on 03/26/03 09:36 AM (server time).
Migrateduser
Glad one of my old rants could be of some help. Regex's are fun.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
FundEmpty.zip
5567.pdf
wmh
Added some items to my previous post.
here is the solution I found. But this is for all sub directories as well, which I don't need.
(^|.*\/)(n.{1,3}|n[^\/]{5,}|n([^e][^w][^f][^l]\.)[^\/]*|[^n\/][^\/]*)\.ear
For the file name newfl.ear
Edited by wmh on 03/26/03 09:40 AM (server time).
Migrateduser
OD 5.6 also has an exception filter. So you can do something like exclude all files matching this pattern, except files matching this other pattern.
Don't delay. Upgrade today! (Sorry.)
Todd Scallan
Group Product Manager
Interwoven
t: 408-530-7167
e:
tscallan@interwoven.com