It's all about the answers!

Ask a question

Spaces in Build Forge adaptor run command parameter


Jozef Vandenmooter (16332933) | asked Oct 18 '13, 4:21 p.m.
edited Oct 18 '13, 4:22 p.m.

Hi,

I'm trying to pass a parameter that has a space in it in a Build Forge adaptor run command:

<run command="cc_describe" params="$VIEW $1 $2" server="$SERVER" dir="/" timeout="360"/>

The parameter $1 occasionally contains a path name that contains a space. Since a space is used to separate parameters, this results in the parameter to be cut up into multple pieces. I tried to fix it by adding double quotes:

  <run command="cc_describe" params="$VIEW &quot;$1&quot; $2" server="$SERVER" dir="/" timeout="360"/>

This works as far as the adaptor is concerned, however, the double quotes mess up the ClearCase describe command.

How can I use a parameter that contains spaces in an adaptor run command without the adaptor treating it as multiple parameters and without using double quotes??

Thanks,

Jozef

 

 

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.