Custom directory structure in Eclipse new project?

泄露秘密 提交于 2019-12-24 07:29:54

问题


In Eclipse , whenever I create a new Java project, it's structure will be as follows.

Project
   |
   |    
   -------- src
   |
   -------- bin

src is a Source Folder. bin is the output folder. I need to have some more normal folders like lib,conf,docs,etc in all my projects. Now I am creating every folder manually by myself whenever I create a new project.Is there anyway or plugin available to create additional folders(Not Source folders) in Eclipse when creating new project? I am not interested in plugin-development. Any readily available plugin would be nice.


回答1:


Unfortunately, there is no plugin for that. If you don't want to keep a skeleton folder to copy over, I suggest you try writing or searching the web for a Maven project archetype. Writing an archetype is quite straightforward, have a look here. You will have to install Maven plugin in Eclipse and, upon creation of a new Maven project, you will be offered to use such a template.




回答2:


Not that I know of, but if you're in the same workspace, why not create a default, empty project with the folders you want and then copy-and-paste into newly-created projects?



来源:https://stackoverflow.com/questions/16415099/custom-directory-structure-in-eclipse-new-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!