ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst de Haan <>
Subject Re:hostname
Date Wed, 26 Oct 2005 15:00:50 GMT
> possible to get hostname in ant?

Try the HostnameTask that comes with XINS. See:

This task is in the xins-common.jar file, which is in the tgz distribution:

Here's an example of how to use it:

   <taskdef name="hostname" classname="org.xins.common.ant.HostnameTask" classpath="lib/xins-common.jar"
   <hostname />

This will stick it in the property named "hostname".


Ernst de Haan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message