facebook

Howto deploy a webapp when using another directory structure

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

    Hi
    I would like to deploy a webapp through the MyEclipse deployment tool, to be able to use the very nice hot-deploy and hot-swap debugging.

    It works great if I create a test project and put all java sources under a src directory and the struts-, taglib definitions-, web-xml, etc under the webroot/WEB-INF directory. And also put the lib files in a lib directory under WEB-INF.

    The thing is in our real projects we have another structure when placing our files. That because many project use the same ‘core’ files, but they might have different web.xml, library files, resource and property files. We have this in a CVS structure and it looks something like this:

    Project/
    Project/src1/ (java source)
    Project/src2/ (java source)
    Project/lib/ (jar files)
    Project/etc/ (web.xml, struts files)
    Project/taglibs/ (differnt tld files)
    Project/resource/ (.property files)
    Project/web/ (jsp, xsl, js, html, images, etc)

    Now, we use ANT build scripts to move these folders and files to a correct deployment structure:

    web/
    web/WEB-INF/ +(files from etc/ and taglibs/)
    web/WEB-INF/lib/
    web/WEB-INF/classes/ (compiled versions of src1/ and src2/)

    The resource files are copied into their correct place under the classes/.

    So, my question is. How can I get this to work?
    How can I define how the WebRoot (deployement directory) should be set up using my CVS folder structure? I would like to be able to still use the CVS functionality, and I don’t want to manually copy or move any files.
    Is it possible to link the files and folders somehow, so that they will be part of the deployement even if they are not present in the WebRoot directory?

    BR
    Marcus

    #204720 Reply

    – System Setup ——————————-
    Operating System and version: W2k
    Eclipse version: 3.0M6
    Eclipse build id:
    Fresh Eclipse install (y/n):
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version: 030700RC2
    Eclipse JDK version: 1.4.2__04
    Application Server JDK version:
    Are there any exceptions in the Eclipse log file?

    – Message Body ——————————-

    #204734 Reply

    Riyad Kalla
    Member

    Marcus,
    I thought this post looked farmiliar… you and another user actually have almost the same question/project setup. See here:
    https://www.genuitec.com/forums/topic/flexible-project-outlines/

    for the answer to your question (short version: we are working on support for this in 2.8, currently you will need to lay out your project like an exploded WAR file, BUT you can make use of linked resources within eclipse to help you do it, so you don’t really need to move your files in CVS. This may/may not help you depending on how complex the layout is)

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Howto deploy a webapp when using another directory structure

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