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
Replace iwsubmit with a script?
System
I have an application that integrates with TeamSite in a number of ways, one of which is by calling iwsubmit. The call to iwsubmit occurs in vendor-provided code that I would prefer not to edit. This code interprets any non-zero OS return code from iwsubmit as an error condition. There are two cases where I don't want this to happen - when the file being submitted is the same as the version in STAGING and when TeamSite believes the file in STAGING is newer than the version in the WORKAREA (this happens because periodic regeneration and submission of the entire site occurs in a temporary WORKAREA and the other WORKAREAs on the branch cannot be updated with the newly generated versions). I want iwsubmit not to report the first condition and to override conflicts in the second condition, but again I don't want to modify the vendor code to add the overwrite parameter.
I was thinking of renaming the default iwsubmit command with something else and writing a Perl script to wrap iwsubmit with code to handle the cases above, at least if the user invoking iwsubmit is the user running the other application This is a Solaris TeamSite instance so I don't have to worry about the extension on the file name. I realize that I would have to maintain this modification with each patch/service pack/upgrade, and that longer-term I need to work with the vendor or their code to implement this correctly, but I am wondering if I went this replacement route what other issues I might face or if there is some better way for the short term.
it would be nice if in iw.cfg I could have a flag that tells it not to generate the error in the first case and a key that would specify usernames that should always override on iwsubmit - this is probably how I would implement the replacement script. There could be other solutions as well - I am hoping to get as much feedback as possible before making a decision on the approach.
Thanks in advance,
-John
Find more posts tagged with
Comments
There are no comments yet