[英]Is there a way to see which Project Wizard was used to create a given Eclipse Project?
Every time I start working on a new J2EE web application, I need to create the various Eclipse projects that I'll fill up. 每次我开始使用新的J2EE Web应用程序时,都需要创建我将填写的各种Eclipse项目。 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.
这包括生成EAR的顶级项目,WAR项目等。我通常只需要每两个月执行一次,因此我不记得确切的步骤-具体来说,是哪个Eclipse Project Wizards用于每个项目。网络应用程序。
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. 我周围有足够多的旧J2EE项目,只要我能实际看到哪个向导创建了它们,它们就可以作为很好的参考。 Is there a way to recover this information?
有没有办法恢复此信息?
I don't think that information is stored anywhere. 我不认为信息存储在任何地方。
However you can look at the .project xml file that every project has in Eclipse. 但是,您可以查看每个项目在Eclipse中具有的.project xml文件。 You want to look at the <natures> element specifically, that will give you a hint of what type of project you want to create.
您要专门查看<natures>元素,这将给您提示您要创建哪种类型的项目。
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;
如果需要,我可以通过向导将现有的Eclipse项目与新创建的项目进行比较。 if the facets are identical, then I've (re)found the right wizard.
如果方面相同,那么我(重新)找到了正确的向导。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.