Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm sharing one workspace between those two systems, and as I'm developing for Android I need Android SDK, which is in Windows in D:/Android/sdk, on Ubuntu it's different path.

How can I make it to switch automatically at Windows to D:/.. and on Ubuntu to home/...?

Because now each time I switch systems, I have to point eclipse to the SDK.

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

Don't share file system, use a sane source code version system, like git or subversion. Because you should have that anyway, even if you work on your source yourself. It's problems sharing projects with different versions of Eclipse or any IDE as it is, so doing that between two OS with different syntax and semantics would only drive you insane. Been there, tried that.

share|improve this answer
1  
Thanks, I followed your advice and used Bitbucket (as I want to have my repos private) and EGit for an Eclipse. Works like charm. Thx –  Primosz Jun 6 '13 at 23:23
add comment

You have to options:

  1. The first one and the best is to share a partition between Ubuntu and Windows.

    In that partitions you can create a project from one system and then modify that project from the other OS.

    NOTE: this partitions should have a compatible file system (recommended: NTFS)

  2. Also you can work with a project saved on your Windows partition (as you're now). But this is not recommended because you will find incompatibility's issues.

IMO you should proceed with the first option

share|improve this answer
    
I'm doing it right now, but my questions is about how to share SDK, as Eclipse keeps path to it in workspace (.metadata), and in my case on each system it is different (so I have to go to options and manually correct it). –  Primosz Jun 5 '13 at 23:14
1  
Yeah, that is part of the undesired effects. Personally, I not recommend to modify a project with two different platforms. –  Lucio Jun 5 '13 at 23:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.