ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject rexec and setting env variables on remote host
Date Sat, 26 Jan 2008 01:16:40 GMT
Hi

I tried using rexec task to invoke a shell script.

<rexec userid="${aname}"
           password="${apass}"
           server="${host}"
           command="cd ${i_dir}; echo $A_HOME $JDK_HOME" />

The output is as follows:
    [rexec] /af/gord
    [echo]

But when I check the local host of this unix box, the variables are set in
.profile. When echoed, they are displayed.

How do I make sure the shell sets these variables in Ant script using rexec
? source command isn't available on the unix box.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message