aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to import a non-eclipse project into eclipse 3.4 (from exploded war with source) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to import a non-eclipse project into eclipse 3.4 (from exploded war with source)" Watch "How to import a non-eclipse project into eclipse 3.4 (from exploded war with source)" New topic
Author

How to import a non-eclipse project into eclipse 3.4 (from exploded war with source)

Quincy Acklen
Greenhorn

Joined: Aug 15, 2002
Posts: 12
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)?
Calson LI
Ranch Hand

Joined: Nov 18, 2005
Posts: 42
Hi Quincy,

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.

Hope it can help,
Calson
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
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.


Visit my blog: http://jnassef.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to import a non-eclipse project into eclipse 3.4 (from exploded war with source)