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}:
[EMAIL PROTECTED]:/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]