eclipse “将项目复制到工作区”是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5137911/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does "Copy projects into workspace" mean?
提问by user496949
When importing a project into Eclipse, there is a checkbox "Copy projects into workspace". I want to know what does this mean. Do I need to select this?
将项目导入 Eclipse 时,有一个复选框“将项目复制到工作区”。我想知道这是什么意思。我需要选择这个吗?
采纳答案by omermuhammed
Every project in Eclipse is part of a workspace, which can be any folder, but usually developers keep the workspace folder as a parent to project folders. So, in this context, Eclipse is asking you, if you already have a workspace, whether you want to copy the project you are importing, to that workspace.
Eclipse 中的每个项目都是工作区的一部分,工作区可以是任何文件夹,但通常开发人员将工作区文件夹作为项目文件夹的父级。因此,在这种情况下,Eclipse 会询问您,如果您已经有一个工作区,是否要将您正在导入的项目复制到该工作区。
I will explain with an example: for my Android work, I have workspace folder called Android-<Product-Name>
. In this I have library projects lib1
, lib2
, and the base Android project (called <product-name>
) that uses those libraries. Hope this makes sense.
我将用一个例子来解释:对于我的 Android 工作,我有一个名为Android-<Product-Name>
. 在此,我有库项目lib1
、lib2
和<product-name>
使用这些库的基本 Android 项目(称为)。希望这是有道理的。
回答by Xonatron
Basically, you want to do this if you want to copy the files of the project you are importing under the workspace folder, and have two copies of the project on your computer at once. This may or may not be what you want to do. In my case it is not what I want to do, as I already have my projects placed in the proper and final location before I import them. My "workspace" folder remains void of project files. This is completely acceptable and is likely what a newcomer to Eclipse working on a test project will want to do. If you are working for someone else, you should ask your employer the setup protocol.
基本上,如果您想将要导入的项目的文件复制到工作区文件夹下,并且同时在您的计算机上拥有该项目的两个副本,则您希望这样做。这可能是也可能不是您想要做的。就我而言,这不是我想要做的,因为在导入项目之前,我已经将项目放置在正确的最终位置。我的“工作区”文件夹仍然没有项目文件。这是完全可以接受的,并且很可能是 Eclipse 中从事测试项目的新手想要做的。如果您为其他人工作,您应该向您的雇主询问设置协议。