You need to define it in your build.xml file.
Something a bit like this:
But consult the documentation thoroughly, this is just a quick hack.
<property name="app.name" value="myapplication"/>
<property name="app.version" value="0.01"/>
<property name="build.home" value="build"/>
<property name="catalina.home" value="/usr/local/tomcat"/>
<property name="deploy.home" value="/usr/local/apache/webpages"/>
<property name="dist.home" value="dist"/>
<target name="compile" depends="prepare"
description="Compile Java sources">
<!-- Compile Java classes as necessary -->
<mkdir dir="$/opt/tomcat/webapps/myapp/WEB-INF/classes."/>
<javac srcdir="src"
destdir="$/opt/tomcat/webapps/myapp/WEB-INF/classes."
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<!-- Copy associated resource files -->
<copy
todir="$/opt/tomcat/webapps/myapp/WEB-INF/classes./WEB-INF/classes">
<fileset dir="src" includes="**/*.properties"/>
</copy>
</target>
On Thu, 2004-03-11 at 15:53, Anu Pidaparti wrote:
> Here is my situation:
>
> Tomcat 4.1 on Solaris 8 using mod_jk2 to integrate with Apache 1.3
> My catalina_home is /opt/tomcat
>
> I want all my jsps, images and any static include files to be under the
> apache document root /webpages instead of /opt/tomcat/webapps/myapp but
> I want my servlets and classes to reside in
> /opt/tomcat/webapps/myapp/WEB-INF/classes.
>
> I have tried to configure server.xml context path but can't get it to
> work.
> Please help.
>
> Thanks.
>
> Anu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Adam Buglass, ><>
The Golden Freeway,
Department of Child Health,
University of Newcastle-upon-Tyne.
Royal Victoria Infirmary.
(0191) 2023062
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
~Benjamin Franklin, 1759
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]