• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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!
 
I am going to test your electrical conductivity with this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic