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.

CCS/CCSTUDIO-C2000: Version control of eclipse /.metadata

Part Number: CCSTUDIO-C2000

Tool/software: Code Composer Studio

Hi, in my project I have a .metadata folder saving workspace settings,

I moved it out of source control, but laterly I found that the "Preference => General => Workspace => Build Order" will return to default when other team members check out the folder.

Is there any way I can keep the "Build Order" settings in the SVN and remain those personalized editor settings out of SVN?

Thanks!

  • Mike Wen said:
    Is there any way I can keep the "Build Order" settings in the SVN and remain those personalized editor settings out of SVN?

    There are a couple of options, give them both a try and pick the one that works best for your environment.

    1) Set up the workspace build order as desired, then Export preferences to a preference file. Check in the preferences file into SVN and let other users import the preferences file into their workspace. Note that this method may bring in other settings in addition to the build order. Please see more information in the "Workspaces" section of this page: https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html#workspaces

    2) The workspace build order setting is saved in the file org.eclipse.core.resources.prefs found in the .metadata\.plugins\org.eclipse.core.runtime\.settings directory. You could check in just this single file into SVN. Then other users will need to copy this file into the same location within their workspace metadata directory.  This is generally not the recommended method, but can be used with caution. When working with preference files directly like this, make sure to always keep a backup copy of the .settings directory if there is ever a need to revert to previous settings. 

    Hope this helps.

  • Hi AartiG, 

    Thanks for replying. I used the second method and it works fine.