• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Eclipse WTP Directory Structure

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I started to work with a team that has a web application already in SVN. The folder structure is as follows:

\application
\index.jsp
\module1
\test1.jsp
\WEB-INF
\web.xml

I would like to use a Dynamic Web Project in Eclipse WTP 2.0.1, but this requires all web content to be in its own folder (with the default name of WebContent). Thus my workspace would need to look like this:

\application
\WebContent
\index.jsp
\module1
\test1.jsp
\WEB-INF
\web.xml

I have been unable to find a way to map from the directory structure in SVN to what is required in Eclipse using the SubEclipse and Subversive plugins.

My question, for those of you that use Eclipse WTP, is it standard practice to have a directory structure in the repository that conforms to what is required by the IDE? It seems wrong for the IDE to dictate how the code in the repository is organized. Also, any ideas on how to "map" the SVN directory structure to what Eclipse WTP requires?

Thanks,
Joe
 
Joe Gliniecki
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, looks like the tabs on my directories got messed up. I'll try it this way:

\application\index.jsp
\application\module1\test1.jsp
\application\WEB-INF\web.xml

and

\application\WebContent\index.jsp
\application\WebContent\module1\test1.jsp
\application\WebContent\WEB-INF\web.xml
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First off, I'd like to say Hello Java Ranch. This is my first post!

I realize this is a fairly old thread but I have the exact same question and it looks like nobody ever replied to Joe. Our CVS at work stores the code in a structure similar to Joe's SVN and it is a pain in the rear for me sync the code out or make changes when my project is in the WTP Dynamic Web Project structure.

I like the features of Eclipse WTP much better than using the Sysdeo Tomcat plugin (Mostly because I have a lot of projects that take forever to load. With WTP I can put only the projects I am currently working with on the server).

Thanks!
 
permaculture is largely about replacing oil with people. And one tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic