Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » share workspace into dropbox between two computers
share workspace into dropbox between two computers [message #771861] Wed, 28 December 2011 11:19 Go to next message
Esteve Valentí is currently offline Esteve ValentíFriend
Messages: 5
Registered: December 2011
Junior Member
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 15:04 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 #772034 is a reply to message #771931] Wed, 28 December 2011 21:05 Go to previous messageGo to next message
Esteve Valentí is currently offline Esteve ValentíFriend
Messages: 5
Registered: December 2011
Junior Member
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!
Re: share workspace into dropbox between two computers [message #772330 is a reply to message #772034] Thu, 29 December 2011 14:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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
Re: share workspace into dropbox between two computers [message #773160 is a reply to message #772330] Sat, 31 December 2011 18:06 Go to previous messageGo to next message
Esteve Valentí is currently offline Esteve ValentíFriend
Messages: 5
Registered: December 2011
Junior Member
I try it and say something.

Thank You !
Have a Happy New Year !
Re: share workspace into dropbox between two computers [message #773925 is a reply to message #773160] Mon, 02 January 2012 22:28 Go to previous messageGo to next message
Esteve Valentí is currently offline Esteve ValentíFriend
Messages: 5
Registered: December 2011
Junior Member
Hello Russell.

I tried to do a little test and I think it run's ok.
I have the same eclipse and sdk components in both computers, and also the workspace on dropbox.

The eclipse console send this message when open the project in one or other computer (never both at same time)

[2012-01-02 23:10:17 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read D:\MisDoc\Dropbox\workspace\test\AndroidManifest.xml: org.eclipse.core.internal.resources.ResourceException: El recurso no está sincronizado con el sistema de archivos: /test/AndroidManifest.xml.
[2012-01-02 23:10:17 - test] AndroidManifest.xml does not declare a Java package: Build aborted.
[2012-01-02 23:12:51 - test] ------------------------------
[2012-01-02 23:12:51 - test] Android Launch!
[2012-01-02 23:12:51 - test] adb is running normally.
[2012-01-02 23:12:51 - test] Performing ev3c.android.test.TestActivity activity launch
[2012-01-02 23:12:51 - test] Automatic Target Mode: launching new emulator with compatible AVD 'and2.1'
[2012-01-02 23:12:51 - test] Launching a new emulator with Virtual Device 'and2.1'
[2012-01-02 23:13:01 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-01-02 23:13:01 - test] New emulator found: emulator-5554
[2012-01-02 23:13:01 - test] Waiting for HOME ('android.process.acore') to be launched...
[2012-01-02 23:14:16 - test] HOME is up on device 'emulator-5554'
[2012-01-02 23:14:16 - test] Uploading test.apk onto device 'emulator-5554'
[2012-01-02 23:14:16 - test] Installing test.apk...
[2012-01-02 23:14:32 - test] Success!
[2012-01-02 23:14:32 - test] Starting activity ev3c.android.test.TestActivity on device emulator-5554
[2012-01-02 23:14:36 - test] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=ev3c.android.test/.TestActivity }

Then the emulator run and the changes I made in the laptop appears in my computer.
Only a line of text... I have to try buttons and more... I'm learning yet.

Say something when test more things.

Sorry for my English !
I'm learning too. Smile
By!
Re: share workspace into dropbox between two computers [message #774199 is a reply to message #773925] Tue, 03 January 2012 13:39 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2012.01.02 15:28, Esteve Valentí wrote:
> Hello Russell.
>
> I tried to do a little test and I think it run's ok.
> I have the same eclipse and sdk components in both computers, and also
> the workspace on dropbox.
>
> The eclipse console send this message when open the project in one or
> other computer (never both at same time)
>
> [2012-01-02 23:10:17 -
> com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]
> Unable to read D:\MisDoc\Dropbox\workspace\test\AndroidManifest.xml:
> org.eclipse.core.internal.resources.ResourceException: El recurso no
> está sincronizado con el sistema de archivos: /test/AndroidManifest.xml.
> [2012-01-02 23:10:17 - test] AndroidManifest.xml does not declare a Java
> package: Build aborted.
> [snip]
>
> Sorry for my English !
> I'm learning too. :)
> By!

Your English is better than good enough to ask questions. I have no
trouble understanding you.

In this case, you're beginning to get into errors with your Android
project. Android isn't Eclipse, so it's best to begin looking for
another forum in which to ask questions (that are Android-related; yes,
I know it's hard to tell sometimes). Consider one of the forums at the
link below.

http://www.javahotchocolate.com/tutorials/android.html#support
Re: share workspace into dropbox between two computers [message #774271 is a reply to message #774199] Tue, 03 January 2012 16:11 Go to previous message
Esteve Valentí is currently offline Esteve ValentíFriend
Messages: 5
Registered: December 2011
Junior Member
ok!

I ask it on this forums.

Thank You so !
Previous Topic:"Key" label decoration
Next Topic:Subclipse SVN Check In
Goto Forum:
  


Current Time: Thu Mar 28 18:43:35 GMT 2024

Powered by FUDForum. Page generated in 0.04521 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top