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)
Deploying DCR's Only
MoReese
Using OpenDeploy, I have a situation in which I want to only deploy DCR's to a directory. It is a filelist deployment. The entry in opendeploy looks like this:
<sourceFilesystem name="s1"
area="/iwmnt/default/main/Zone1/www/lcv2/Content_Development/STAGING"
filelist="$filelist^">
<pathSpecification>
<path name = "." />
<filters>
<excludePattern regex="\.cfg$"/>
<excludePattern regex="\.dtd$"/>
<excludePattern regex="\presentation"/>
</filters>
</pathSpecification>
</sourceFilesystem>
The filelist contents looks like this:
directory/image.jpg
templatedata/Catagory/type/data/Test1
templatedata/Catagory/type/data/Test2
directory2/image.jpg
I need the deployment to only deploy the data that is in the templatedata directory. I tried adding this: <path name = "templatedata" />. But this does not work, becuase it then is expecting the line in the filelist to look like: Catagory/type/data/Test1. But, for various reasons, I cannot change the format of the filelist.
The next option I explored was to add another excludePattern element in which it's purpose was to exclude every folder that does NOT contain templatedata. This is the statement that I tried:
<excludePattern regex="m#^([^t]...........|t[^e]..........|te[^m].........|tem[^p]........|temp[^l].......|templ[^a]......|templa[^t].....|templat[^e]....|template[^d]...|templated[^a]..|templateda[^t].|templatedat[^a])#" />
This did not work, because it can only check for NOT templatedata at the begining of the string, and not in the middle of the string.
The issue of wanting to deploy only DCR's seems fairly common, so I'm hoping someone can help me with find a solution to this.
To recap, my question is: How can I deploy only DCR's given a filelist that has data organized as follows?
directory/image.jpg
templatedata/Catagory/type/data/Test1
templatedata/Catagory/type/data/Test2
directory2/image.jpg
Thank you in advance.
Find more posts tagged with
Comments
sunil_j
Is there any specific reason why you choosed FileList based deployment?
I think if you specify area attribute as
<sourceFilesystem
area="/iwmnt/default/main/Zone1/www/lcv2/Content_Development/STAGING/templatedata/Catagory/type/data">
It will deploy all the DCRs stored under the Data Folder for the specified Category and Type.
james1
Why can't you perform some pre-processing on your filelist file, to remove non-DCR files?
--
James H Koh
Interwoven Engineering
MoReese
I'm think along the lines of pre-processing, and divied the information into two separte filelist. One with only DCR's, and the other with other content. That may work.