How do I COPY a project from one workspace to another using CubeIDE?
I have been trying for months to figure out how to copy a project from one workspace to another using CubeIDE. I would appreciate a response from an ST employee who can actually verify that any recommendation they offer actually works.
Here's what I have tried.
I have developed a custom project by importing an example project from one of the "expansion packs" available for download. In this specific example I imported the Nx_TCP_Server application contained in the en.x-cube-azrtos-h7-v3-0-0\Projects\NUCLEO-H723ZG\Applications\NetXDuo\Nx_TCP_Echo_Server that I downloaded from the ST website. So this project exists in workspace1.
Now I want to copy this project into a different workspace (i.e. workspace2).
HOWEVER, when I "Import" the project from "Existing Projects in Workspace" into my current workspace2 (without checking the option to "Copy projects into workspace...more on this below), most/many of the files are "linked" (linked resources) back to the main expansion pack files. Thus, any modifications made to these linked files are actually stored inside the original expansion pack code....not in my workspace. When I add new custom source files, they exist only in my workspace, not in the expansion pack. Thus, my project is permanently linked back to the HUGE expansion pack instead of being a stand-alone, complete application that is portable to other workspaces.
Alternatively, when I DO check the option to "Copy projects into workspace" there are no "linked" icons in the imported source files, but there are exclamation points on each file. When I double click to open these files, the file does not exist in the workspace and I get an error message saying "File not found: /Nx_TCP_Echo_Server/Application/User/Core/main.c.". This happens for all of the files that were "linked" using the previous import method (not copying files into workspace).
I have discovered that the imported files actually DO exist on disk in the proper workspace folder location. The problem seems to be with the "Linked Resources" location as defined in the project properties PROJECT_LOC path variable. ALL of the imported files appear to be imported with a relative path below the PROJECT_LOC. Notice the screen shot below showing "Invalid Location" for all (500+) imported files.
I have also tried modifying the PROJECT_LOC variable but have not been successful getting these files properly located by the CubeIDE.
From what I have read on this website, as well as some of the Eclipse community websites, there is a real problem with the "linked resource" that has been causing lots of confusion for quite a while. It appears that CubeIDE "Import" function has this problem.
I look forward to clarification from someone at ST.
Thx.
Mikeh
