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.

Tools Question - CCS Command Line Build

I am automating some build processes with CCS command line build

OS: Windows 7 Professional 64-bit, Service Pack 1

CCS: 6.0.1.00040

I want to know if it is possible to import build variables via a build variables file (macro*.ini) from the command line into a workspace. currently the build variables need to be imported to the workspace manualy via the GUI.

regards

  • If the variables are defined in a vars.ini file in the root location of the project folder, they should be automatically read in during project import. Please see this related thread.

  • Hello,


    I just tried this, I placed the path variables file called macroWin.ini in the project root, but the paths were not updated.

    When we import build variables manually we select the checkbox which says overwrite existing variables. Is there any way to force this option from the command line (or in the file).


    Regards

  • Anuj Mitra said:
    I just tried this, I placed the path variables file called macroWin.ini in the project root, but the paths were not updated.

    Did you try renaming the file to vars.ini and see if that works?

    Anuj Mitra said:

    When we import build variables manually we select the checkbox which says overwrite existing variables. Is there any way to force this option from the command line (or in the file).

    Are you using the -ccs.overwrite option? I am not sure if that overwrites existing variables though. If it does not you may have to import into a new workspace. A better long term solution may be to set the variables at the project level so they carry over with the project as needed, and don't have to be imported into the workspace each time.

  • AartiG said:

    Did you try renaming the file to vars.ini and see if that works?

    Yes, that makes no difference

    AartiG said:

    Are you using the -ccs.overwrite option? I am not sure if that overwrites existing variables though. If it does not you may have to import into a new workspace. A better long term solution may be to set the variables at the project level so they carry over with the project as needed, and don't have to be imported into the workspace each time.

    I am importing projects into a new workspace, it's part of a process of automated builds. The project needs to work on both linux & windows platforms, so it is not possible or desirable to do this

  • Hi Anuj, Aarti,

    CCS currently has no command-line support for importing build-variables at the workspace scope.

    - Baltasar