Is there a way to get the machine name as ant property, for both Linux and Windows OS.
The correct way to find the local machine's hostname is by using Ant's HostInfo task. This will work across all platforms and is natively supported by Ant.