4

我正在使用 ubuntu 8.04 和 windows xp。我将包含 Eclipse 工作区的 fat32 磁盘安装到 ubuntu。但我发现我无法使用工作区,也许我无权使用它。

我安装的fat32磁盘有755正确,我尝试使用chmod将其更改为777但失败了。我尝试将其安装到 777 模式,但我发现 vfat 选项中的模式没有任何内容。

接下来我该怎么做?我如何共享工作空间?帮我。谢谢。

4

4 回答 4

3

我建议不要尝试在两个不同的系统之间共享原始工作区数据,而是像在典型的大型软件开发项目中那样做。使用版本控制系统来存储您的代码并在该版本控制系统中提交/更新,而不是共享文件。

这可能不是您最初感兴趣的答案,但请放心,一段时间后您会注意到该版本控制系统的许多优点,包括:

  • 在今天的“天才”变化之前轻松回到代码版本,这最终并没有真​​正起作用
  • 有你的项目的备份,以防你的工作站死机
  • 您甚至可以从完全不同的机器/位置访问您的项目。

如果您的项目要开源,您甚至可以使用Sourceforge.net等公共服务。

于 2008-12-09T08:17:43.070 回答
1

I believe that the fat32 doesn't support the same kind of permissions as the linux ones you are familiar with. Once you have sorted out the rw option in /etc/mtab then I think you will have a better time.

However, the step after that is to have two different installations of Eclipse working on the same workspace.

I haven't had a lot of success with this (though haven't tried you're exact scenario), but I would be careful to:

  • keep the Eclipse versions in synch
  • only use relative paths, and relative to the workspace. This is probably good practice any way, but is worth repeating.

If all goes well, then you should be sharing everything, including preferences across both installations.

There are two refinements I can think of, which may be useful to reason about, if not actually do:

  • you could probably share most of the installation of eclipse (the plugins and features directory, if not the config.ini and eclipse.ini files). If you can't put both executables in the same directory, consider the -install and -configuration runtime options.
  • if you can't do any of these things, then you may need to work on two parallel workspaces. You can keep them in synch with tools such as rsync or even a distributed source control like Mercurial.
于 2008-12-04T19:31:46.893 回答
0

我同意bananeweizen.myopenid,并有以下提示要添加:

创建构建路径条目时,请使用类路径变量引用所有外部资源(例如,jarfile)。这将允许您在环境之间移动 .classpath 文件(如果您是唯一的开发人员,甚至可以将其签入源代码管理),而不会遇到路径名问题。

要通过变量引用 JARFile,请进入构建路径的“库”选项卡,删除对该库的任何现有引用,然后单击“添加变量...”。您将需要定义公共变量,例如 M2_REPO 或 LOCAL_LIBS,并且您需要确保这些定义在您的所有环境中都可用。

于 2008-12-09T13:41:27.440 回答
0

也许你遇到的问题是大写。请务必先在 Ubuntu 中创建工作区。这应该排除任何文件名大写问题。

于 2008-12-09T13:46:43.857 回答