Johan Svensson
Johan Svensson

Reputation: 389

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.

Upvotes: 1

Views: 1554

Answers (1)

Johan Svensson
Johan Svensson

Reputation: 389

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

Upvotes: 1

Related Questions