I work a developement team where the developers can choose any IDE they want. As such we build from and ant file so they anyone can build the project without any particular IDE dependancies. But the option to create a new Java project from an Ant build file, does not import anything but the src directory. Not even the WEB-INF directory is included!
The project in question is structured in source control (ClearCase - yuk) as an exploded war (with the the src directory in the root - not the WEB-INF/src). I would think this would be the simplest of all posible project imports. And I would also be sadly mistaken.
If I create a new project from the war file then the source is not present in the project. And if I try to add a new source directory it has a collision with the existing src directory (which is compiled classes, not the source - so there is nothing to expand/edit). If I choose a new src directory it doens't seem to work (expand) either.
There are tons of tutorials on how to create a new project... from scratch, but how do you begin working on a project that already exists (with all the bells and whistle as if I had created it from scratch as a Dynamic web app)?
I used Eclipse. There is a feature to import a project. If your project including source was in a war file. Eclipse can import this project war file. You can try File->Import to see if works. My colleague used "File->Export" his project in a war file, I can import his project into my Eclipse workspace.
There are several ways to do so. One way is to create a new project, and choose the "Create project from existing source" option. You will then choose the location of the source files, and you're done. Another way is to use the import option, and import the war file, but don't think that you would be able to edit the code using this option. The best option IMHO is to get a clearcase plugin to be able to get the project directly from it from within eclipse.