|
Re: share workspace into dropbox between two computers [message #771931 is a reply to message #771861] |
Wed, 28 December 2011 15:04 |
|
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 14:29 |
|
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 #774199 is a reply to message #773925] |
Tue, 03 January 2012 13:39 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.07808 seconds