This was functionality that I was seriously considering writing. I was
thinking of adding an option to the exec command to place the results
into a property instead of an output file. After a review of the exec
task code, it looks pretty easy to write an output handler that would do
the
Yet another case where the idea I just proposed (to set a property's
value from the execution of a process) would be useful...
On windows 2k at least, you could do this:
property environment=env/
property sysname=${env.COMPUTERNAME}/
On unix you could maybe use ${env.HOSTNAME} or, more
dns or netbios?
-Original Message-
From: nick.home.account [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 11:38 AM
To: ant-user
Cc: nick.home.account
Subject: machine name
Hi All,
Is there a way to determine the machine name
from ANT without writing a new task?
Cheers,
Nick