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.
我正在使用 RAD(基于 Eclipse),我source在一个项目中有两个文件夹,一个用于核心源文件,一个用于测试。如何让它们编译到不同的输出(bin)文件夹?
source
显然我不希望我的单元测试被构建到我的输出 jar 中。
首先选中该Allow output folders for source folders框,然后修改Output folder每个源目录下的各个元素。
Allow output folders for source folders
Output folder
在EclipseZone上发现的解决方案
右键单击项目,选择 Properties,然后选择 Java Build Path。在“源”选项卡上,您可以看到源文件夹。启用复选框“允许源文件夹的输出文件夹”并适当配置每个源文件夹。