share workspace into dropbox between two computers [message #771861] |
Wed, 28 December 2011 06:19  |
Eclipse User |
|
|
|
Hello.
First of all... Happy New Year !
I'm new using eclipse and android sdk.
I Would like to know if it is possible to share the eclipse workspace folder into dropbox to share an eclipse project between 2 computers?
And working with him on both computers.
Thank You very much and sorry for my English.
|
|
|
Re: share workspace into dropbox between two computers [message #771931 is a reply to message #771861] |
Wed, 28 December 2011 10:04   |
Eclipse User |
|
|
|
On 2011.12.28 4:19, Esteve Valentí wrote:
> Hello.
>
> First of all... Happy New Year !
>
> I'm new using eclipse and android sdk.
>
> I Would like to know if it is possible to share the eclipse workspace
> folder into dropbox to share an eclipse project between 2 computers?
>
> And working with him on both computers.
>
> Thank You very much and sorry for my English.
This is not possible at all.
You can use dropbox to transfer the project back and forth, but
information in your workspace is specific to the computer you're running
Eclipse on. Some information in your project (.classpath, .project,
etc.) can become specific to your computer too.
The best approach is to share your project (but not "live"). Perhaps
save it to Subversion, Git or another version-control system, then
update your workspace on either computer from the work done (and
committed) from the other. This will update only the relevant source
files between separate workspaces and projects, but the application will
be otherwise identical.
You'll have to see how portable your project remains if you want to
attempt to consume it directly, not via version-control, out of dropbox
on two computers. If both computers are accessing it simultaneously,
this will not work.
|
|
|
|
Re: share workspace into dropbox between two computers [message #772330 is a reply to message #772034] |
Thu, 29 December 2011 09:29   |
Eclipse User |
|
|
|
On 2011.12.28 14:05, Esteve Valentí wrote:
> It is not about two people working on two computers with the same
> project ... only myself working on a computer or another, but never at
> the same time.
> Which folders should be copied between computers to do this?
> Or is it completely impossible?
>
> Thank you very much!
As I say, you can't share workspaces, but you might get away with
sharing the same project. Here's how.
1. Create the project on one computer, get it more or less how you'd
like it (i.e.: simple Java Project, Dynamic Web Project, etc. as created
by Eclipse). You'll be able to add or delete source code later, but the
project should exist enough for Eclipse to recognize it.
2. Copy the important parts of the project to your dropbox location.
3. From inside Eclipse, discard the original project including source
files (it prompts you to be cautious about this).
4. Create a new project in the same (or a different) workspace. When the
wizard comes up, you can name it what you want, but tell it to get the
source files from another location and not to copy them into the
workspace. Eclipse will consume the project from dropbox, I think.
5. Repeat this from your other computer from its Eclipse using,
obviously, its own workspace.
6. The changes you make from one computer will be reflected in the
other. You will have to right-click your project and choose Refresh when
you change computers.
7. All third-party libraries (JARs) must be copied to a path inside your
project. Otherwise, your .classpath file will acquire full filesystem
pathnames which will not hold true on both computers. Another way of
causing this problem is to associate Javadoc or source code with any of
those third-party JARs (let's say you wanted Javadoc for hibernate3.jar,
you're screwed as soon as you do that).
I have not done this; there may be a hole in what I'm telling you or,
you may accidentally do something that destroys your ability to do it
this way (as suggested by #7).
As I pointed out in my original reply, it's better to use a
version-control system for this (and, obviously, there are other
benefits too).
Note: I know what dropbox is and have used it very briefly once. I don't
know all the peculiarities of it. So, I may be making unwarranted
assumptions on doing this.
Best of luck,
Russ Bateman
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.30873 seconds