Hello, here some names to get it:
1) Using hostname command. I have tested the following
snippet only on Linux:
<exec executable="hostname" dir="${basedir}"
outputproperty="exec.hostname"/>
<echo>$${exec.hostname} is ${exec.hostname}</echo>
2) Using environmant variables (again testes only on
linux).
<property environment="env"/>
<echo>$${env.hostname} is ${env.HOSTNAME}</echo>
3) Using scriptdef and java.net package:
<scriptdef name="script.hostname"
language="javascript">
<attribute name="property"/>
<![CDATA[
importPackage(java.net);
address = InetAddress.getLocalHost();
name = address.getHostName();
project.setNewProperty(attributes.get("property"),
name);
]]>
</scriptdef>
<script.hostname property="script.hostname"/>
<echo>$${script.hostname} is ${script.hostname}</echo>
HTH Ivan
--- [EMAIL PROTECTED] wrote:
> I don't see this in the available properties?
>
> Thanks.
> --
> Galen Boyer
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]