This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A prarmeter(s) in CCXML target configuration file

Hello, support.

I want to have the parameter (IP address of SpectrumDigital emulator) to the CCXML file.

Is it possible to do somehow?

A short description of problem: we have a team with 6 developers and common CCXML file is stored in the repository. I want to reduce the number of configuration files by adding of external parameter. An environment variable would be the best for us.

  • Hi,

    Sergei Sergeyuk said:
    I want to have the parameter (IP address of SpectrumDigital emulator) to the CCXML file.

    Sorry, I am not exactly sure what you mean by that sentence. Do you mean you want to set the IP address in a  scripted way?

    If so, keep in mind the .ccxml file is a simple .txt file, therefore you can easily write a script (perl, bash, etc) that can modify the parameter. If you open the .ccxml file, the IP is set as shown in the line below:

    <property Type="stringfield" Value="128.247.71.115" id="portAddr1"/>
    

    Hope this helps,

    Rafael

  • I want to have string like this:

    <property Type="stringfield" Value="${USER_SPECIFIC_VARIABLE} id="portAddr1"/>
    instaed of
    <property Type="stringfield" Value="128.247.71.115" id="portAddr1"/>


     

  • Hi,

    No, unfortunately what you are trying to do is not possible at this time - not directly from the CCS environment, but you could have a script that parses the file and replaces the USER_SPECIFIC_VALUE with the contents of the environment variable.

    Regards,

    Rafael