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
[EMAIL PROTECTED]

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

Reply via email to