ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramu Sethu" <sra...@yahoo.co.in>
Subject env.COMPUTERNAME not working in linux
Date Tue, 26 Feb 2008 14:09:36 GMT
Hi

We have a build script which runs in both windows and Linux m/c. Recently i
added property to print the computer name of the m/c in which the script
runs.

In windows everything is fine. Ant sets the property  to the hostname in
windows. But in Linux it prints the hostname like "${env.COMPUTERNAME}".
Value is not printed.

Is COMPUTERNAME only for windows? Is there any workaround to print the
hostname(Linux)?

We don't make any changes in the ant script when running in Linux.

-- 
Thank you
Ramu S

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