IntelliJ IDEA 文件夾種類介紹


IntelliJ IDEA 文件夾類型介紹

  • Source roots(or source folders; shown as /help/img/idea/2017.1/rootSource.gif)將目錄標注為source roots。這會告訴IntelliJ IDEA,這個文件夾中存在項目編譯時需要的源代碼

  • Generated source roots(or generated source folders; shown as /help/img/idea/2017.1/rootGeneratedSourceIJ.png;   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 /help/img/idea/2017.1/rootTest.gif). 和source roots比較相似但是其中的代碼是為了測試而准備的。

  • Generated test source roots(or generated test source folders; shown as /help/img/idea/2017.1/rootGeneratedTestSourceIJ.png;in certain views the [generated] text marker is used)和Test source roots類似。不同之處與Source roots和Generated source roots的區別相同。               

  • Resource roots   (or resource folders;shown as /help/img/idea/2017.1/rootResourceIJ.png; 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 /help/img/idea/2017.1/rootTestResourceIJ.png;                available only in Java modules)測試時所需的資源文件。從某些方面來說,和resource 文件夾類似。

  • Excluded roots(shown as /help/img/idea/2017.1/rootExcluded.gif)被IntelliJ IDEA 幾乎忽略的文件。Very limited coding assistance is provided for files in excluded folders.Classes contained in excluded folders don't appear in code completion suggestion lists,references to such classes are shown in the editor as unresolved.When searching, IntelliJ IDEA doesn't look in excluded folders, etc.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM