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.

How to share files with multiple CCS projects



I have some files I need to share with multiple CCS projects. I would like to create a folder in my workspace for these common files and then reference them from the other projects in the same workspace. When I export the projects, I would like to export the shared files as well (may just as a zip file). How can I do this?

Currently, when I create a project, it expects to build something (library or executable). It also binds to an ISA and a tool chain. None of this is appropriate for my needs. I just want a container for arbitrary files (text and binary). I could simply create a folder in my workspace (using explorer) but then the files don't show up in my CCS Project browser.

Thanks
~Ramsey

  • Hi Ramsey,

    Ramsey said:
    I have some files I need to share with multiple CCS projects. I would like to create a folder in my workspace for these common files and then reference them from the other projects in the same workspace. When I export the projects, I would like to export the shared files as well (may just as a zip file). How can I do this?

    In CCSv4, the exported project archive file used to include the shared (linked) files as long as the links were absolute paths. Unfortunately, this functionality broke in a later version of Eclipse 3.5 I think) and is still unresolved. Since CCSv5 is based off Eclipse 3.7 & 3.8 the issue exists in CCSv5. Now, If I recall correctly, I think that the behavior still works to some degree. It is supposed to preserve the original directory structure in the archive but I think it simply dropped all the linked files in the root project directory. If you do not care if the original directory structure is preserved, you may want to give it a try and see what happens.

    Ramsey said:
    Currently, when I create a project, it expects to build something (library or executable). It also binds to an ISA and a tool chain. None of this is appropriate for my needs. I just want a container for arbitrary files (text and binary). I could simply create a folder in my workspace (using explorer) but then the files don't show up in my CCS Project browser.

    The Project Explorer will only show projects. If you don't want all those dependencies, you can create an Eclipse general project. This will create the most basic of projects with not much defined by default (no build tools, no rules, nothing). A minimal .project file will get generated in the project folder. You can add your files to it and use it as a container.

    Hope this helps

    ki

  • Ki-Soo,

    Your suggestions were very helpful. I created an Eclipse General project for my shared files. The project wizard did not ask me any questions other than project name, just what I was looking for.

    File > New > Project...
    General > Project
    Next
    Project name: shared
    Finish

    I then added my files. The other projects reference these files as property values, not linked files. For example, in my ipu1-0 project, I reference shared/config.bld as follows.

    Project Properties
    Build > XDCtools > Advanced Options
    Build configuration file: ${WORKSPACE_LOC}/shared/config.bld

    This works out great, because when I export both projects (shared, ipu1-0) there are no issue related to linked files as you described above. When I inspect the contents of my exported projects (zip files), I don't see any absolute path references. I imported both projects into a new workspace, and everything seems to build fine.

    Thanks
    ~Ramsey