简体   繁体   English

排除Eclipse中的库类

[英]Excluding library class in Eclipse

Is there a way to exclude classes getting built from a specific Eclipse project's referenced library? 有没有一种方法可以排除从特定Eclipse项目的引用库中构建的类?

I'm aware of Build Path -> Exclude , though I'd like a more project specific setting, to avoid building unnecessary classes. 我知道Build Path > Exclude ,尽管我想要一个更特定项目的设置,以避免生成不必要的类。 That is, some projects should be able to access the library's files, while some exclude it from their build path. 也就是说,某些项目应该能够访问该库的文件,而另一些项目则将其从构建路径中排除。 The library has the source file attached, so I'm able to edit and exclude all classes from the library in Eclipse. 该库附加了源文件,因此我可以在Eclipse中编辑和排除该库中的所有类。

Found a possible solution. 找到了可能的解决方案。 I linked my library's source via Build Path -> Link Source , and then excluded the files from that source folder. 我通过Build Path -> Link Source链接了库的源,然后从该源文件夹中排除了文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM