axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ove Gram Nipen <ove.ni...@delfidata.no>
Subject Re: Uploading aar file programatically / or using Ant script
Date Wed, 12 Mar 2008 14:24:30 GMT

On Wed, 2008-03-12 at 14:24 +0100, Milan Kuchtiak wrote:
> Hi,
> 
> Is there any way to upload .aar files from within the java code or using 
> some ant script ?

Yes, we use Ant for this. 

> I know that aar file can be copied to axis2.war(using a simple Ant 
> script) , but this doesn't help when axis2.war is deployed on a remote 
> server.

Just use scp :)

> I am interested in something similar to 
> org.apache.catalina.ant.InstallTask (capability to deploy war file).

This works for me (I run axis2 on tomcat):
<property name="project.name" value="mywebserviceapp" />
<property name="project.version" value="1.0-SNAPSHOT" />
<property name="jar.dir" value="target" />

<property name="remote.host" value="hostname.mycompany.com" />
<property name="remote.user" value="tomcat" />
<property name="remote.pw" value="secret" />
<property name="remote.catalina_home" value="${remote.user}:
${remote.pw}@${remote.host}:/path/to/tomcat/apache-tomcat-6.0.14" />
<property name="remote.axis.path"
value="${remote.catalina_home}/webapps/axis2/WEB-INF" />


<target name="remote.deploy">
    <scp 
        file="${jar.dir}/${project.name}-${project.version}.jar" 
        todir="${remote.axis.path}/services/${project.name}.aar" 
        trust="true" 
    />
</target>

You need jsch.jar in /usr/share/ant/lib


Hope this helps!

-- 
Regards, 
Siv.ing. Ove Gram Nipen
Delfi Data

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message