Best way to duplicate a workspace with projects
Hi,
Let's say I have a workspace with multiple projects (e.g. application project, bootloader project, etc.) for a product. Let's say this workspace is located in C:\ProductA. Now I would like to duplicate this workspace to use it for another product let's say ProductB, it will be located in C:\ProductB, but of course I want to also keep ProductA. After Googling a lot about doing this in Eclipse I now have found two ways to achieve this:
Option 1: Create a completely new workspace C:\ProductB from scratch and then import the projects from C:\ProductA into that workspace by ticking the "Copy projects into workspace" option. The problem with this approach is that all workspace settings will need to be imported in a separate step from the old workspace and I am not 100% sure that CubeIDE will actually copy all additional files and folders from the old folder.
Option 2: Do a filesystem copy of C:\ProductA to C:\ProductB and open C:\ProductB in STM32CubeIDE. The annoying problem here is, that all project links still point to the old C:\ProductA folder as Eclipse uses absolute paths! So a proposed quick solution is to simply remove the projects from that workspace (without deleting them from disk) and then reimport them (without having to copy them into the new workspace, as they are already there). After doing so all project links seem to point to C:\ProductB and all workspace settings seem to be still there.
Somehow I like the second approach better, as I do a manual full copy of all files contained in C:\ProductA to C:\ProductB, also if there are some additional files or folders they will be also copied over and I don't have to export/import workspace settings. What do the gurus think about this? Are there some possible drawbacks of the second approach I did possibly overlook?
Thanks in advance and best regards,
Anguel
