有没有办法查看使用哪个项目向导来创建给定的 Eclipse 项目?
每次我开始开发新的 J2EE Web 应用程序时,我都需要创建我将填写的各种 Eclipse 项目。这包括生成 EAR 的顶级项目、WAR 项目等。我通常只需每隔几个月执行一次此操作,因此我永远不记得确切的步骤 - 具体来说,每个项目使用哪个 Eclipse 项目向导网络应用程序。
我有足够多的旧 J2EE 项目,只要我能真正看到是哪个向导创建了它们,它们就可以作为很好的参考。有没有办法恢复这些信息?
Every time I start working on a new J2EE web application, I need to create the various Eclipse projects that I'll fill up. This includes the top-level project that generates the EAR, a WAR project, etc. I usually only have to do this every couple of months, so I never remember the exact steps - specifically, which Eclipse Project Wizards to use for each project in the webapp.
I have enough old J2EE projects laying around that they could serve as good reference if only I could actually see which Wizard created them. Is there a way to recover this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为这是不可能的。
我建议使用 Maven。它具有自动创建特定类型项目的原型。在 Eclipse 中使用 m2eclipse 插件更容易。看看 这里
I don't think it is possible.
What I would suggest is to use Maven. It has archetypes to automatically create specific types of projects. It is even easier in Eclipse with m2eclipse plugin. Take a look here
我不认为信息存储在任何地方。
不过,您可以查看 Eclipse 中每个项目都有的 .project xml 文件。你想看看<自然>具体来说,它会提示您要创建什么类型的项目。
I don't think that information is stored anywhere.
However you can look at the .project xml file that every project has in Eclipse. You want to look at the <natures> element specifically, that will give you a hint of what type of project you want to create.
自从提出这个问题以来,我发现的最好的系统就是查看项目的各个方面。如果需要,我可以将现有的 Eclipse 项目与通过向导新建的项目进行比较;如果这些方面相同,那么我(重新)找到了正确的向导。
The best system I found since asking this is to look at a project's facets. If needed I can compare an existing Eclipse project to a newly created one from the wizard; if the facets are identical, then I've (re)found the right wizard.