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)
extract branch name
System
Ho do I get the name of the branch from within a DCR?
Shouldn't something like this work?
<iw_perl><![CDATA[
my $value = $ENV{IW_BRANCH};
iwpt_output("Branch Name is $value");
]]></iw_perl>
Doesn't give me any result. Any ideas?
Saravanan
Find more posts tagged with
Comments
james1
You can use some regex wizardry to extract a branch vpath from a file vpath. Since you're dealing with DCR's, you can probably just assume that the file is in a workarea and chop off everything after "WORKAREA".
A more sure-fire way to do this is to execute the "iwvpath" CLT.
-- James
--
James H Koh
Interwoven Engineering