从Android的建立在Eclipse中排除文件 [英] Android exclude file from build in eclipse
问题描述
我有一个Android项目,我的工作在Eclipse。有没有特殊的要求,但是我有几个文件中,我不希望/需要包括到最后的建设项目,但我不希望让他们身在何处。他们都是java源文件,都在同一个包。有在包中没有文件,这点我需要包括 - 这样我就可以放心地跳过整个包从构建
I have an Android project, which I'm working on in Eclipse. There are no special requirements, however I do have a couple of files in the project which I do not want/need to include into the final build, yet I do want to keep them where they are. They are all java source files and are all in the same package. There are no files in that package, which I do need to include - so I can safely skip that whole package from build.
所以,我的问题:有没有办法在Eclipse中的时候,Android应用程序是建立在构建排除包(或单个文件对于这个问题)
So, to my question: is there a way in Eclipse to exclude a package (or an individual file for that matter) from the build when the android app is built?
在此先感谢。
推荐答案
在Eclipse中右键单击某个文件(或包装)在Package Explorer。应该有一个构建路径>排除的选项
In Eclipse right click on a file (or package) in the Package Explorer. There should be a Build Path > Exclude option
这篇关于从Android的建立在Eclipse中排除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!