Gidday Jonathan, fancy meeting you here :)

There are a couple of ways of doing this without resorting to mucking
around with tomcat, but involves editing the build.xml control file.

1. rebuild app and copy over to webapps the entire app. Edit compile
destination to point to classes folder in webapps/newapp/WEB-INF.
Every subsequent compile will do the obvious :)

Drawback with this option is you need to remember to copy over other
resources as they are added/edited.

2. Define a 'deploy' target in the build file which copies everything 
over to the webapps folder auto-magically (if you make deploy the 
default target). This has been my preferred MO in past apps (and the 
one I am using on IPN :) just haven't checked it in yet :(

If you're real keen, you could CnP/edit the following (from a work 
project; never get to read my mail at home any more :(


<!-- ====================================================================
-->
<!-- =========================== D E P L O Y ============================
-->
<!-- ====================================================================
-->

  <target name="deploy" depends="prepare,compile" description="Deploy
website">

    <copy todir="${deploy.home}/resources/dtds">
      <fileset dir="${resources.home}/dtds" />
    </copy>

    <copy todir="${deploy.home}/resources/transforms">
      <fileset dir="${resources.home}/transforms" />
    </copy>

    <copy todir="${deploy.home}/resources/templates">
      <fileset dir="${resources.home}/templates" />
    </copy>

    <copy todir="${deploy.home}/WEB-INF/classes">
      <fileset dir="../src" includes="**/*.properties"/>
      <fileset dir ="${devel.home}/classes" />
    </copy>

    <copy todir="${deploy.home}/images" >
      <fileset dir="../../images" />
    </copy>

    <copy file="${devel.home}/web.xml"
      tofile="${deploy.home}/WEB-INF/web.xml"/>

    <copy file="../../index.html"
      tofile="${deploy.home}/index.html" />

    <copy todir="${deploy.home}/WEB-INF/lib">
      <fileset dir="${devel.home}/lib"/>
    </copy>
    <copy todir="${deploy.home}/WEB-INF/conf">
      <fileset dir="${devel.home}/conf"/>
    </copy>

  </target>


HTH


Robbe Stewart
Contractor
2.C.64



> -----Original Message-----
> From: Jonathan Carlson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 16, 2001 12:36 AM
> To: [EMAIL PROTECTED]
> Subject: Turbine/Tomcat question
> 
> 
> I am trying to keep my Turbine web app checked in with my own CVS 
> project and would like to avoid copying files over to the 
> Tomcat webapps 
> directory.  Hence, I would like to change Tomcat's server.xml file to 
> make Tomcat think it's webapps directory is elsewhere.
> 
> I have tried changing a few "webapps" references in server.xml to 
> "d:/home/myproj/web" -- Yes, I'm using WIndowsNT :-(    -- but Tomcat 
> refuses to start up when I do that.
> 
> Is this question better posed to the Tomcat list?  I'm not a 
> member of 
> that list but I suppose I could join just to ask the question.
> 
> Thanks in advance for any help offered!
> 
> Jonathan Carlson
> [EMAIL PROTECTED]
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to