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/66AK2H12: Copy existing project's Propertires?

Part Number: 66AK2H12


Tool/software: Code Composer Studio

PDK 4.0.7, NDK 2.25.1.11, SYS/BIOS 6.45.5.55, IPC 3.46.2.04, EDMA3 2.12.4, CTools 2.2.0, CCS 7.4

I want to create a new project that has the same properties as another project in the same workspace. Is it possible to copy just the properties? Or copy an existing project with all the source files linked so I can delete them from the new project without deleting them from the file system?

Mike

  • Mike,

    Copying just the project properties is not something that is easiliy done.  You can however copy the whole project.

    I can right click a project and select to copy it.

    In then right click again and select to paste.  This will pop up the copy project dialog where you can specify the name for the new project.

    Here are the properties for a source file from my original project.  I have highlighted part of its path to show that it is in the original projects folder.

    Here is the same informaiton for the file in the new project.  Here you can see that the path as the 2 on the end for the new project.

    That is for a file that is physically located in the project that was copied.  You also likely have files that are "linked" or referenced by the project.  There have a little arrow indicator on their file icons in the project explorer.

    Here the top file is in the project and the bottom file is linked.

    When you delete a phyical file from your project it deletes the actual file.  When you delete the linked file it just removes the reference to the file and not the actual file in the file system.

    Here is what I see when deleting the first file from the new project

    Here is the second file that is linked

    Now I go back to my original project and I can open both of the files as for the first one it has its own copy and for the second one the actual file was not touched.

    Regards,

    John

  • Thank you for the detailed response.

    That was the first thing I tried. My copy/paste did not work like that. The files in the copied project had the same location as the original project.

    Original:

    and the "copy"

    Same location so if I delete, I lose my file from the original project.

  • That is odd.  It is also interesting that it is showing that the archive property is set for the file in the file-system.

    I just tried my CCSv7.4 install to see if I see the same thing there (I was using a much newer version).  However there when I copy the project I still see the correct location for the copy.

    Is the file in a source control repository?  I see Git listed in your properties dialog.  Maybe that impacts the behavior.

    John

  • Yes it is under GIT control. Maybe something to do with that or the relationship between the workspace location and the projects. I did try a different workspace that wasn't co-located with the project but that worked the same way.

    My goal was to create some unit test projects to test modules in primary project. Those tests should be built with identical build settings and use the exact same source as the primary, only adding a "main" test harness. 

    I think I'll drop it for now but again, thanks for your review and suggestions.