本文介绍了Eclipse新项目中的自定义目录结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

在Eclipse中,每当我创建一个新的Java项目时,其结构如下。

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

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

src是源文件夹。 bin是输出文件夹。我的所有项目中都需要有一些更普通的文件夹,例如lib,conf,docs等。现在我每当创建一个新项目时就由我自己手动创建每个文件夹。创建新项目时,是否有可用的插件在Eclipse中创建其他文件夹(不是Source文件夹)?我对插件开发不感兴趣。

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.

推荐答案

不幸的是,没有适用于此的插件。如果您不想保留要复制的框架文件夹,建议您尝试编写或在Web上搜索Maven项目原型。编写原型非常简单,请。您将必须在Eclipse中安装Maven插件,并且在创建新的Maven项目后,将提供使用该模板的功能。

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.

这篇关于Eclipse新项目中的自定义目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 21:56