ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst de Haan <ernst.deh...@wanadoo.nl>
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:
http://cvs.sourceforge.net/viewcvs.py/xins/xins/src/java-common/org/xins/common/ant/HostnameTask.java?rev=1.15&view=log

This task is in the xins-common.jar file, which is in the tgz distribution:
http://prdownloads.sourceforge.net/xins/xins-1.3.0-beta4.tgz?download

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".

Regards,


Ernst de Haan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message