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.

CCSTUDIO: Exclusions get deleted from .cproject file

Part Number: CCSTUDIO

Hi,

I’m running into a recurring issue with Eclipse automatically modifying the project’s .cproject file in a way that breaks the build. This happens repeatedly, even after I manually correct the file.

My version is Code Composer Studio 12.8.0.00012 

What I configure (works correctly)

I have the following sourcePath entry in .cproject, which is required for the build to function correctly:

<entry excluding="include/|portable/GCC/|portable/IAR/|portable/MemMang/heap_1.c|portable/MemMang/heap_2.c|portable/MemMang/heap_3.c|portable/MemMang/heap_5.c"
       flags="VALUE_WORKSPACE_PATH"
       kind="sourcePath"
       name="freeRTOS_Source"/>
What Eclipse changes it to (incorrect)

Without any intentional edits on my part, Eclipse replaces the above with:

<entry flags="VALUE_WORKSPACE_PATH"
       kind="sourcePath"
       name="freeRTOS_Source"/>

This removes all exclusions and causes the build to fail.

Alternate incorrect transformation

In another project, Eclipse instead rewrites the configuration as:

<entry excluding="portable/IAR/**|include/**|portable/GCC/**"
       flags="VALUE_WORKSPACE_PATH"
       kind="sourcePath"
       name="freeRTOS_Source"/>

<entry flags="VALUE_WORKSPACE_PATH|RESOLVED"
       kind="sourcePath"
       name="freeRTOS_Source/portable/IAR"/>

<entry flags="VALUE_WORKSPACE_PATH|RESOLVED"
       kind="sourcePath"
       name="freeRTOS_Source/portable/GCC"/>

<entry flags="VALUE_WORKSPACE_PATH|RESOLVED"
       kind="sourcePath"
       name="freeRTOS_Source/include"/>

This structure is also invalid for my build and was not manually created.

The build breaks after Eclipse rewrites .cproject

The changes are silent and persistent and I have to repeatedly revert or manually edit .cproject to fix.

I’m looking for guidance on how to prevent Eclipse from automatically rewriting or “normalizing” these sourcePath entries, or alternatively, which CCS setting or action is triggering this behavior and whether there's a supported way in the project's Properties window to express these exclusions so Eclipse does not rewrite them.