Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何阻止 Eclipse 编译和检测目录中一堆 .java 文件中的错误?我正在为一个类编写一个类型检查器,这些文件是测试用例,我不希望它们被编译或错误显示在问题选项卡中。
Eclipse 只编译源文件夹中的那些类。右键单击包含这些文件的文件夹,然后单击Build Path -> Exclude以将该文件夹排除在源文件夹之外,编译器将忽略这些文件。
Build Path -> Exclude