便携式Eclipse [英] Portable Eclipse

查看:309
本文介绍了便携式Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将整个工作区移植到USB密钥(包括Eclipse可执行文件),以便我可以随身携带我的工作,并直接处理密钥。



我的目录层次结构与此类似:

  / workspace / eclipse  - 存储我当前的eclipse二进制文件
/ workspace / codebase - 我保存所有eclipse项目的根目录
/ workspace / resources - 保存所有项目文件(图像,文档,库,等等)

这一切都在一个系统上工作得很好。但是当我切换到另一个系统时,USB钥匙会被安装在另一个驱动器上。例如,在我的笔记本电脑上,我得到'E:\',在我的电脑上,我得到'K:\',在工作中我得到'F:\'等等。



这意味着因为Eclipse(对于某些原因)似乎只在其每个配置文件(如.classpath)中使用完整路径名(包括驱动程序字母),没有任何我想在另一个系统上工作。



我将一个'libs'目录放在每个项目的基础上,并用它的依赖JAR文件填充它。为什么不使用相对名称,所以我可以指定像../../ libs / log4j.jar一样?



任何人都知道如何解决这个问题?有没有人知道这个的解决方法?






更新:2010.11.09



我最近发现了 Dropbox ,它允许您在线和自动同步您的文件,极其轻松。它包含2GB的可用空间,如果需要,您可以升级更多(每年费用)。



我将其安装在我的两台笔记本电脑上,我的两台电脑,我的Linux服务器和我的Android手机,然后我在我的Dropbox文件夹中创建了一个工作区目录。从工作区目录中,我安装了Eclipse,并像往常一样创建/配置了所有的项目。我可以从任何一台电脑上完成任务,一切都保持完美的同步。这是比任何USB键功能和它的麻烦更好!

解决方案

你尝试使用 Eclipse Portable 。对我来说很好。我唯一要记住的是,然后切换我需要记住的工作空间给它相对路径(如 ../../ Data / workspace )。 / p>

I'm trying to port my entire 'workspace' to a USB key (including the Eclipse executable) so that I can carry my work anywhere with me and work off the key directly.

My directory hierarchy is similar to this:

/workspace/eclipse - Where my current eclipse binary is stored
/workspace/codebase - Where I keep the root of all my eclipse projects
/workspace/resources - Where I keep all project files (images, docs, libs, etc.)

It all works perfectly fine on one system. But when I change over to another system, the USB key gets mounted on another drive. For example, on my laptop, I get 'E:\', on my PC, I get 'K:\' and at work I get 'F:\', etc, etc.

This means that because Eclipse (for 'some' reason) seems to only use full path names (including driver letters) in every single one of its configuration files (such as .classpath), nothing ever works when I want to work on another system.

I put a 'libs' directory in the base of every project and populate it with its dependent JAR files. Why doesn't it use relative names instead, so that I could specify something like "../../libs/log4j.jar"?

Anyone know how to fix this problem? Does anyone know of a workaround for this?


Update: 2010.11.09

I've recently discovered Dropbox, which allows you to sync your files online and across your computers automatically with extreme ease. It includes 2GB of free space and you can upgrade to much more if you want (for a yearly fee).

I installed it on my two laptops, my two PC's, my Linux server and my Android phone and then I created a 'workspace' directory within the 'My Dropbox' folder. From the 'workspace' directory, I then installed Eclipse and created/configured all my projects as usual. I can literally work from any computer and everything always stays perfectly in sync. This is way better than any USB key functionality and its hassle!

解决方案

Have you tried using Eclipse Portable. Works fine for me. The only thing I have to keep in mind is then switching the workspace I need to remember to give it relative path (like ../../Data/workspace).

这篇关于便携式Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆