eclipse eclipse中的外部输出文件夹

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1470827/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:02:07  来源:igfitidea点击:

External output folder in eclipse

eclipse

提问by Avi Y

Is there a way in eclipse to make the project's output folder an external folder, instead of a folder located under the project root?

eclipse 中有没有办法让项目的输出文件夹成为外部文件夹,而不是位于项目根目录下的文件夹?

回答by VonC

Yes, you can define it as a linked folder.

是的,您可以将其定义为链接文件夹

http://archive.eclipse.org/eclipse/downloads/drops/R-2.1-200303272130/images/linked-resource.gif

http://archive.eclipse.org/eclipse/downloads/drops/R-2.1-200303272130/images/linked-resource.gif

This this SO answer for more(or this one)

是更多(或这个)的答案

To create a new linked folder select New->Folder, input bin in the folder name: field then click Advanced>>

Click Link to folderin the file system
Click on Variables... to bring up the Select Path Variable dialog.

If this is your first time, or you are linking to a new location select New... and give the variable a sensible name and path.

要创建一个新的链接文件夹 select New->Folder,在文件夹名称中输入 bin: 字段然后单击Advanced>>

点击Link to folder在文件系统中
,点击Variables...,弹出选择路径变量对话框。

如果这是您的第一次,或者您要链接到一个新位置,请选择 New... 并为变量指定一个合理的名称和路径。

More precisely, you define your output directory (say 'bin') as a linked folder, then you set that directory as the official output one of your project.

更准确地说,您将输出目录(例如“bin”)定义为链接文件夹,然后将该目录设置为项目的官方输出目录。