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

The end of that statement is misleading - are you looking for the hostname or 
the host OS? Or is your machine named 'Linux'?

Vijay



Ramu Sethu wrote:
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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to