You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nick Davis <ni...@yahoo.com> on 2001/05/23 18:37:30 UTC

machine name

Hi All,

Is there a way to determine the machine name
from ANT without writing a new task?

Cheers,
Nick

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Re: machine name

Posted by Frederic Lavigne <fr...@castify.net>.
edit ant.bat or ant.sh and add a java property to the java command which starts Ant

-Dmachine.name=%COMPUTERNAME% on Windows
-Dmachine.name=`hostname` on Unix (or maybe $HOSTNAME)

-fred

Nick Davis wrote:
> 
> Hi All,
> 
> Is there a way to determine the machine name
> from ANT without writing a new task?
> 
> Cheers,
> Nick
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/