Can projects in a workspace have relative paths?

cancel
Showing results for 
Search instead for 
Did you mean: 

Can projects in a workspace have relative paths?

Jump to solution
528 Views
Ray_V
Contributor V

We are using MCUXpresso for many of our projects. We are also using GIT for version control.

So far we have to Clone the repository. Then create a new workspace in the directory and then import existing projects.

We tried to include the workspace in the GIT repository so we could just open the workspace without the need to import the projects after cloning the repository.

The problem is that the paths seem to be absolute, so the projects are not found in the workspace.

Is there a way to create a worksapace where the project paths are relative to the workspace?

0 Kudos
1 Solution
379 Views
converse
Senior Contributor V

Suggest you use eGit plugin, which integrates directly into Eclipse/MCUXpresso. With this, you can commit straight from the workspace and do pretty much all of your Git procedures directly in the IDE. As long as all projects in the workspace have relative paths, then they will be retained.

for more info, see EGit Tutorial - EclipseSource  

View solution in original post

0 Kudos
4 Replies
380 Views
converse
Senior Contributor V

Suggest you use eGit plugin, which integrates directly into Eclipse/MCUXpresso. With this, you can commit straight from the workspace and do pretty much all of your Git procedures directly in the IDE. As long as all projects in the workspace have relative paths, then they will be retained.

for more info, see EGit Tutorial - EclipseSource  

View solution in original post

0 Kudos
379 Views
Ray_V
Contributor V

I guess this works and is probably the only solution.

But we don’t really like the way it works.

We would like the cloned repository to be a subdirectory of the workspace. Not be hidden in the %USERPROFILE%\GIT directory.

There are two reasons for this.

  1. If working on several different projects all of them are put in the same directory and it’s just visually messy to distinguish between them.
  2. Not everyone likes the GIT interface in MCUXpresso. Some want to use the command line, others want to use explorer extensions for GIT.
0 Kudos
379 Views
converse
Senior Contributor V

You can have the clone anywhere. See

git - Eclipse + EGit: clone project into workspace - Stack Overflow 

Using Egit does not stop you using other tools if you wish. But we found that once you are used to it, 99% of people like the convenience of doing everything in the same environment.

0 Kudos
379 Views
Ray_V
Contributor V

Thank you, I guess I went too fast and missed the directory selection on the last "Clone Repository" dialog

-Ray

0 Kudos