facebook

Sharing code among several Web Projects

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

    dafortin
    Member

    The standard structure of a Web Project has a subfolder for the source code.
    Is there a recommended way to share code among several different Web Projects with MyEclipse?
    I’m also interetsed in sharing various JSP and other non-Java code files. But again these have unique “standard” locations in each project.

    #222972 Reply

    Scott Anderson
    Participant

    Is there a recommended way to share code among several different Web Projects with MyEclipse?

    Yes there is. Create a plain Java project and place the common code in it. Then make the new project a dependency of both web projects. You’ll also need to update your deployment settings to ensure that the new project is deployed with each war file as explained in our Working with Web Projects Quickstart in the Documentation section here:
    http://myeclipseide.com/ContentExpress-display-ceid-67.html

    I’m also interetsed in sharing various JSP and other non-Java code files. But again these have unique “standard” locations in each project.

    Currently, I don’t know of a good way to do this since the packaging effectively mandates that these types of artifacts be placed under the webroot.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Sharing code among several Web Projects

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