facebook

[Closed] Customizing deployment

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #285121 Reply

    bthj
    Member

    Hi,

    I’m starting work on a web project originally created in IntelliJ and the structure is such that the folders

    META-INF
    WEB-INF
    resources

    start from the project’s root.

    Where this project is currently deployed live, files in the resources folder are referenced from the root, like so:
    http://server/myProject/fileInResourcesFolder.gif
    rather than:
    http://server/myProject/resources/fileInResourcesFolder.gif

    In the project tree is a file from IntelliJ called myProject-webapp.iml and it has the entry
    <webroots>
    <root url=”file://$MODULE_DIR$/resources” relative=”/resources” />
    <root url=”file://$MODULE_DIR$/WEB-INF” relative=”/WEB-INF” />
    </webroots>
    which I guess makes this possible, to deploy from both resources and WEB-INF to a common root on the server.

    So my question is: How can I deploy from both resources and WEB-INF to a common webapp root on the server, without refactoring the project’s tree?

    People will be working on this also in IntelliJ and I wouldn’t want to disturb their config by rearranging the tree. And preferably I would like to be able to use the Deploy to server feature in the IDE, rather than creating a custom Ant script or such.

    Thanks for any hints,
    /Björn

    #285124

    Loyal Water
    Member

    I’m sorry but there is not way to customize the deployment like you want here. The projects which are deployed using MyEclipse have to confine to the structure mentioned here:-
    http://www.myeclipseide.com/documentation/quickstarts/webprojects/#concepts_and_terminology

    #285125

    bthj
    Member

    Thanks for the reply.

    Then I can at least stop looking for where to do this 🙂 Maybe I’ll convince the team to refactor the tree…

    /Björn

    #285153

    Loyal Water
    Member

    Your Welcome.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Customizing deployment

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