Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Regex question
System
Hi,
We're using Open Deploy 5.6 on W2K. The upgrade from 5.0 made a change in deployment information stream format. We have a script that reads the information so it can take action based on a file deployment. The new format means the old regex searching for a file deployment doesn't work anymore. Here are the two lines of code:
if($line =~ m|<log_element .* response="Sending \[([^\]]*)\]|){
my $file = $1;
It works when we use the old-style format, meaning it obtains the name of the file being deployed when a line like this shows up:
<log_element target="" action="0" date="1051756634" result="4" response=" Sending directory [.] -- 225 entries
But the new style lines look like this:
<item path="21977-1.jpg" type="FILE" reason="missing-in-dest" action="NEW" status="COMPLETED" statusDetail="" srcDir="Y:\default\main\Custom\WORKAREA\development\images" trgDir="F:\Content"/>
How can I update the regex to match this new format? I'm not entirely sure of everything the old one was doing. Thanks,
David
Find more posts tagged with
Comments
There are no comments yet