简体   繁体   中英

Excluding library class in Eclipse

Is there a way to exclude classes getting built from a specific Eclipse project's referenced library?

I'm aware of Build Path -> Exclude , though I'd like a more project specific setting, to avoid building unnecessary classes. 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.

Found a possible solution. I linked my library's source via Build Path -> Link Source , and then excluded the files from that source folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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