如何将多个项目复制到eclipse中的单个文件夹中

发布于 2024-08-11 13:44:08 字数 215 浏览 4 评论 0原文

我有两个项目,项目1和项目2。

现在我想将此项目复制到 Eclipse 工作区中,但我希望这些项目位于单个文件夹中,如下所示。

Eclipse 工作区 ->项目-> Project1、Project2

即 Project1 和 Project2 应位于 Workspace 文件夹中的 Project 文件夹中。

如何在日食中做到这一点?

I have two projects, Project1 and Project2.

Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below.

Eclipse Workspace -> Project -> Project1, Project2

i.e Project1 and Project2 should be in folder Project in Workspace folder.

How to do this in eclipse?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

樱花坊 2024-08-18 13:44:08

查看工作集

在 Eclipse 中,工作集提供了一种将项目收集到某种保存文件夹中的便捷方法。该文件夹仅在某种“元”意义上存在,单个项目可以属于多个工作集。

上面的链接显示了这些操作的视频。我一直在寻找一种方便的方法来收集项目,以方便我在大型工作空间中搜索特定项目,并且发现这一小部分的组织有很大帮助。

Take a look at working sets.

In Eclipse, Working Sets provide a convenient way to collect projects together into a sort of holding-folder. This folder exists only in some "meta" sense, and single projects can belong to multiple working sets.

The link above shows a video of these in action. I had been looking for convenient way to collect projects together to ease my searching for specific projects in large workspaces and have found this small bit of organization helps quite a bit.

桃扇骨 2024-08-18 13:44:08

对于这个问题确实没有 Eclipse 特定的解决方案。即使将项目导入到 Eclipse 中,获得所需目录结构的唯一方法就是在 Eclipse 中移动文件。

一个更简单的解决方案是在文件系统上的某个位置创建所需的目录结构,然后使用 Eclipse 的导入现有源功能。

There really isn't an Eclipse specific solution to this problem. Even if you import the projects in to Eclipse, the only way to arrive at the directory structure you desire is to move the files around in Eclipse.

An easier solution would be to create the desired directory structure somewhere on the filesystem and then use Eclipse's import existing source feature.

泪痕残 2024-08-18 13:44:08

您可以定义一个 eclipse 项目(即 .project 和 .classpath),其中两个文件夹 Project1 和 Project2 作为链接文件夹(请参阅此答案了解更多信息,或这个)

alt text

但这涉及将 Project1 和 Project2 的组合设置重新创建到 Project (即声明两个 src 文件夹,列出两个项目的所有编译 jar 依赖项作为 Project 的依赖项,依此类推)

You can define an eclipse Project (i.e. a .project and .classpath) with two folders Project1 and Project2 as linked folders (see this answer for more, or this one)

alt text

But that involve recreating the combined settings of Project1 and Project2 into Project (i.e. declaring two src folders, listing all compilation jar dependencies for both project as dependencies for Project, and so on)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文