facebook

Web Application – mixing src w/ build [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #197333 Reply

    cstansbury
    Member

    I’m curious about the choice made w/ respect to mixing the web source folder w/ the java build directory (in particular the WEB-INF/classes dir). As is mentioned in the myeclipse documentation itself, overlapping a source directory with an Eclipse build directory is a no-no… Could someone enlighten me on why this decision was made?

    I am especially curious how people have chosen to treat the “classes” folder in a team programming/version control context. Do they simply add it to .cvsignore (or the equivalent)?

    Also, we took some pains to sure our pre-MyEclipse projects generated a separate build directory for web applications… Is there any way to fit an such a web application into MyEclipse w/o having to move source folders around?

    Thanks in advance, Chad

    #197334 Reply

    Scott Anderson
    Participant

    Chad,

    As is mentioned in the myeclipse documentation itself, overlapping a source directory with an Eclipse build directory is a no-no… Could someone enlighten me on why this decision was made?

    This is a limitation in Eclipse. You’ll have to direct the question to the Eclipse team. We don’t make the rules, we just have to live by them. However, I’m sure they have a darn good reason; they’re a pretty bright bunch. 😉

    I am especially curious how people have chosen to treat the “classes” folder in a team programming/version control context. Do they simply add it to .cvsignore (or the equivalent)?

    That’s what we always do. Just ignore it. It gets rebuild 100% from the source directory anyway.

    Also, we took some pains to sure our pre-MyEclipse projects generated a separate build directory for web applications… Is there any way to fit an such a web application into MyEclipse w/o having to move source folders around?

    We base our web project layout directly on the exploded war structure mandated by the spec. The farther your project structure deviates from this, the trickier it is to integrate it. I can understand why you might have wanted a separate build directory when you’re doing all your own builds and deployments manually by writing Ant scripts, but now that we automate all of that, perhaps you might rethink the approach in light of the new capabilities that MyEclipse affords you.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Web Application – mixing src w/ build [Closed]

You must be logged in to post in the forum log in