-
Source roots(or source folders; shown as )将目录标注为source roots。这会告诉IntelliJ IDEA,这个文件夹中存在项目编译时需要的源代码
-
Generated source roots(or generated source folders; shown as ; in certain views the [generated] text marker is used)和source roots比较相似。不同之处在于,在执行Move类重构或使用use quick fix中的Create类时,Generated source roots不建议作为目标文件夹。
-
Test source roots(or test source folders; shown as ). 和source roots比较相似但是其中的代码是为了测试而准备的。
-
Generated test source roots(or generated test source folders; shown as ;in certain views the [generated] text marker is used)和Test source roots类似。不同之处与Source roots和Generated source roots的区别相同。
-
Resource roots (or resource folders;shown as ; available only in Java modules)其中包括了项目所使用的各种资源文件。例如图片、多种xml文件和属性文件。
During the build process, all the contents of the resource folders are copied to the output folder as is.Similarly to sources, you can specify that your resources are generated. You can also specify which folder within the output folder your resources should be copied to.
-
Test resource roots(or test resource folders; shown as ; available only in Java modules)测试时所需的资源文件。从某些方面来说,和resource 文件夹类似。
-
Excluded roots(shown as )被IntelliJ IDEA 几乎忽略的文件。