On Mon, 9 Sep 2002, Dominique Devienne <[EMAIL PROTECTED]> wrote:
> You can get the absolute pathname of your executable on Win32 using:
>
> <available property="ssh.exe" file="ssh.exe" filepath="${env.Path}"
> />
>
> and use ${ssh.exe} thereafter.
Are you sure?
I'd think this property would be either unset or "true" after that
task. Yep:
[EMAIL PROTECTED] bodewig]$ cat > /tmp/ssh.xml
<project default="foo">
<target name="foo">
<property environment="env"/>
<available property="ssh" file="ssh" filepath="${env.PATH}"/>
<echo>${ssh}</echo>
</target>
</project>
[EMAIL PROTECTED] bodewig]$ ant -f /tmp/ssh.xml -verbose
Apache Ant version 1.6alpha compiled on September 9 2002
Buildfile: /tmp/ssh.xml
...
foo:
[property] Loading Environment env.
[available] Found: ssh in /usr/bin
[echo] true
BUILD SUCCESSFUL
Total time: 3 seconds
Stefan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>