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.

Can defaultConfiguration be changed during command line build?

Other Parts Discussed in Thread: CCSTUDIO

Hello,

From looking at this post http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/203240/900507.aspx#900507 I have learned how to change the .ccsproject file so that I can select "Debug" or "Release" as the default configuration. I am using  5.3.0.00090.

In a command line build batch file, I wish to do these steps:

1. import a project into a workspace

2. clean the project

3. build the debug configuration

4. build the release configuration

Step 2 is causing issues because it will clean whatever the default configuration is. So it will clean either "Debug" or "Release".

Is there a command-line argument for the cleaning step to force it to clean a specific configuration?

The steps we are using are below.

Thanks,
Geraldine

::import the project to the workspace
%ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectImport -ccs.location %PROJECT_PATH% > import.log
::clean project debug configuration from the workspace
%ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.clean > clean.log
::build project debug configuration from the workspace
%ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Debug > build_debug.log
::build project release configuration from the workspace
%ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Release > build_release.log

  • Hello Geraldine,

    Geraldine Maclear said:

    Step 2 is causing issues because it will clean whatever the default configuration is. So it will clean either "Debug" or "Release".

    Is there a command-line argument for the cleaning step to force it to clean a specific configuration?

    If you append -ccs.clean to your build command for a configuration, it will clean that specific configuration only.

    For example if you wanted to clean the Release configuration:

    >%ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Release -ccs.clean

    Thanks

    ki

  • Thanks Ki, this works very well.

    Geraldine

    Our new batch file does this:

    ::import the project to the workspace
    %ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectImport -ccs.location %PROJECT_PATH% > import.log
    ::clean project debug configuration from the workspace
    %ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Debug -ccs.clean > clean_debug.log
    ::clean project release configuration from the workspace
    %ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Release -ccs.clean > clean_release.log
    ::build project debug configuration from the workspace
    %ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Debug > build_debug.log
    ::build project release configuration from the workspace
    %ECLIPSE_DIR%\eclipsec.exe -nosplash -data %MY_WORKSPACE%  -application com.ti.ccstudio.apps.projectBuild  -ccs.projects %PROJECT_NAME% -ccs.configuration Release > build_release.log