Jacob Kjome wrote:
I just tried it.
Yep,
<target name="deploy" depends="compile,manager.init"
description="Deploy web-app war" >
<deploy
url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
config="${app.ccf}"
path="${app.path}" />
</target>
the path attribute is moderately redundant since you specify it in the Context Configuration File, but, oh well.
Buildfile: c:\usr\devel\jon\tomcat-book\book\hello\build.xml
cdeploy:
[copy] Copying 1 file to C:\usr\devel\jon\tomcat-book\book\hello\dist
BUILD FAILED
file:c:/usr/devel/jon/tomcat-book/book/hello/build.xml:549: The <deploy> task doesn't support the "config" attribute.
My task looks like this:
<target name="cdeploy" description="Deploy web application">
<filter token="context.docbase" value="${dist.home}/${app.name}-${app.version}.war" />
<filter token="context.path" value="${app.path}" />
<copy todir="${dist.home}" filtering="true" >
<fileset dir="${basedir}">
<present present="srconly" targetdir="${basedir}">
<mapper type="glob" from="sample.*" to="*" />
</present>
</fileset>
<mapper type="glob" from="sample.*" to="*" />
</copy>
<deploy
url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
config="file:///${dist.home}/context.xml"/>
</target>
I'm using Ant 1.5.1 and Tomcat 4.1.12
Clues ?
Cheers,
-- jon
Check out the Barracuda project to see this stuff integrated pretty transparently into the build.
http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsTech/Barracuda/src/
Jake
At 05:06 PM 10/29/2002 +1100, you wrote:
Hi all,
The Tomcat Ant deploy task can take a WAR file to be installed which
is just great, but I want to be able to configure the <Context> as
part of the deployment.
Does the deploy task have the capability of taking an optional
config="foo.xml" in the same way as the install task ?
Cheers,
-- jon
--
Jon Eaves <[EMAIL PROTECTED]>
http://www.eaves.org/jon/
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
-- Jon Eaves <[EMAIL PROTECTED]> http://www.eaves.org/jon/ -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
