You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Rob Ross <RR...@eentertainment.com> on 2004/03/16 02:43:47 UTC
ant task for uploading war file via manager app
Having searched the archives, I didn't find anything about this subject.
I wrote a simple ant task that will upload a war file from a locally mounted
directory via a tomcat manager webapp running on any network accessible
machine. Sample use of the ant task is :
<taskdef name="upload" classname="com.enetworks.antTasks.UploadWarTask" />
<target name="upload" depends="war" >
<property name="warPath" value="${basedir}/${dist.dir}/${app.name}.war"
/>
<echo message="Deploying ${warPath} to ${manager.url}..."/>
<upload url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
war="${warPath}" />
</target>
I wrote this because I couldn't get the jakarta-ant "deploy" task to work.
Is it supposed to let me deploy a local war file to a remote server?
Anyway, I didn't see any "upload" task in jakarta-ant, so would anyone be
interested in the code for the upload task?
Rob Ross
Senior Software Engineer
E! Networks
rross@eentertainment.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org