Hi there, in opposite to my previous post I want to deploy a war file to remote server running Tomcat using the Tomcat Ant-task (provided by catalina-ant.jar). But even I get 'OK' back from the server - the newly added files are not copied in the webapp dir. Do I make something wrong ? If possible I don't want to restart the server.
Here's my Ant task: -- file tomcatTask.xml <property name="deploy.dir" value="C:\Temp\ant-test\deployment\" /> (it's hard-coded because relative dir's didn't worked for me) <property name="app.name" value="webapp" /> <property name="webapp.name" value="webapp" /> <property name="tomcat.username" value="TomcatAdmin" /> <property name="tomcat.password" value="XXXX" /> <property name="tomcat.manager.url" value="http://remoteHost:8888/manager/" /> <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" /> <taskdef name="list" classname="org.apache.catalina.ant.ListTask" /> <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask" /> <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask" /> <target name="deploy" description="Install application in Tomcat"> <deploy url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${webapp.name}" war="file:${deploy.dir}/${app.name}.war" update="true"/> </target> <target name="remove" description="Remove application in Tomcat"> <undeploy url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${webapp.name}"/> </target> <target name="redeploy" description="Redeploy application"> <antcall target="remove" /> <antcall target="deploy" /> </target> I'm calling this target from another file like this: <ant antfile="${basedir}/deploy/tomcatTask.xml" dir="${out.dir}" target="redeploy"/> In the tomcat config I have set unpackWARs=TRUE and also created a Tomcat manager user. Thanks, Lothar ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]