> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to