-
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 幾乎忽略的文件。