安卓:调试在Eclipse中有针对性的资源文件夹 [英] Android: targeted res folders for debugging in eclipse

查看:246
本文介绍了安卓:调试在Eclipse中有针对性的资源文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,我有一些不同的品牌版本中,有两种不同的资源文件夹。 IE浏览器。 RES-的customer1,RES-的customer2 使用Maven构建配置文件,我可以使用指定的资源文件夹,轻松地构建项目。

I have a project which I have a number of different branded versions, with two different res folders. ie. res-customer1, res-customer2 Using Maven build profiles I can easily build the project using the specified res folder.

然而,当涉及到日食的另一个故事。我想要做的是有一个设置,这样我可以指定我想要的资源文件夹,而在eclipse调试。

However when it comes to eclipse its another story. What I want to do is to have a setting so that I can specify the res folder that I want, whilst debugging in eclipse.

任何人都知道我能做到这一点?

Anyone know how I can do this?

我目前的解决办法是在RES-的customer1文件夹复制到Eclipse中就可以了RES文件夹的工作和调试,然后将其移回RES-的customer1之前,我可以使用Maven构建。我真的不希望做这个,因为它会很容易犯一个错误,并导致自己的问题负载,如果我可以直接日食的文件夹,而不是移动月食的文件夹会少很多麻烦。

My current work around is to copy the res-customer1 folder into the res folder work on it and debug in eclipse then move it back to res-customer1 before I can build it using Maven. I don't really want to be doing this as it will be easy to make a mistake and cause myself loads of problems, if I could just direct eclipse to the folder, rather than moving the folder for eclipse would be much less hassle.

任何想法?在此先感谢

推荐答案

您可以使用链接源在Eclipse中,右键单击您的项目,选择<大骨节病>构建路径 - > <大骨节病>链接源... :

You can use Link Source in Eclipse, right-click your project, choose Build Path -> Link Source...:

更新:对于一些的Eclipse版本使用<一个href="http://help.eclipse.org/juno/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-45.htm">this链接

UPDATE: For some Eclipse versions use this link

在Project Explorer中最后一眼:

Final look in Project Explorer:

请注意,小标志在res文件夹图标,它只是一个符号链接Poing的到RES-的customer1文件夹。美丽点,这种方法是在文件系统中现有的项目文件夹保持不变,你不从一开始就需要一个坚实的资源文件夹。

Note that the little sign in the res folder icon , it is just a symbolic link poing to the res-customer1 folder. The beautiful point in this approach is the existing project folder in file system remain the same, you don't need a solid res folder from the beginning.

这篇关于安卓:调试在Eclipse中有针对性的资源文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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