如何在Eclipse中创建多个项目共享的源文件夹? [英] How to create shared source folder across multiple projects in Eclipse?

查看:1511
本文介绍了如何在Eclipse中创建多个项目共享的源文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找了Android + App Engine的源$ C ​​$从谷歌IO会话的(安卓满足应用程序引擎)。它们产生的三个项目,一个Android项目,一个GWT接口,以及一个App Engine服务器项目。所有这些项目都称为共享一个共同的源文件夹在那里他们可以把该应用程序的所有部分需要了解他们的同步数据类。

I've been looking at the Android + App Engine source code from a Google IO session (Android meet App Engine). They generate three projects, an Android project, a GWT interface, and an App Engine server project. All of these projects have a common source folder called shared where they can put their synchronized data classes that all parts of the app need to know about.

我不知道如何创建一个通用的Eclipse项目共享的源文件夹。我怎样才能建立在一个项目中的源文件夹也可用于并同步在Eclipse中其他项目?

I'm wondering how to create that shared source folder in a general Eclipse project. How can I create a source folder in one project that's also available to and synced with other projects in Eclipse?

修改
我不是在寻找如何做一个Android库项目(我已经使用了数那些对我的应用程序)。 Android的图书​​馆没有为通用的Eclipse项目的工作,说一个App Engine服务器端项目。

Edit
I'm not looking for how to do an Android Library project (I already use several of those for my apps). Android Libraries don't work for a general eclipse project, say an App Engine server side project.

推荐答案

我使用的太阳神蚀。

导航到在Package Explorer项目,单击鼠标右键,选择新建,选择源文件夹。输入文件夹名称,然后单击Finish(完成)。

Navigate to your project in the package Explorer, right-click and select New, select Source Folder. Enter the folder name and click Finish.

如果你想使用源文件夹在您的任何项目,然后转到项目属性,单击Java构建路径,去源选项卡,您可以链接的文件夹。

If you want to use the source folder in any of your projects, then go to your project properties, click Java Build Path, go to Source tab, you can link the folder.

这篇关于如何在Eclipse中创建多个项目共享的源文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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