ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst de Haan <>
Subject [PATCH] Hostname property
Date Wed, 29 May 2002 11:27:26 GMT
Hi all,

I've created a patch for Ant that will set an internal property "hostname" to 
the current hostname. See attached diff, generated against 
revision 1.108.

Output when running ant -verbose:

   ernst@zaphod$ ant -verbose init
   Apache Ant version 1.6alpha compiled on May 29 2002
   Buildfile: build.xml
   Detected Java version: 1.3 in: /usr/local/jdk1.3.1/jre
   Detected OS: FreeBSD
   Detected hostname:
   parsing buildfile build.xml with URI =  
   Project base dir set to: /usr/home/ernst/jakarta-ant

We need the hostname in our projects in order to distinguish between 
host-specific configuration properties (in different property files).


Ernst de Haan
EuroNet Internet B.V.

    "Come to me all who are weary and burdened
        and I will give you rest" -- Jesus Christ

View raw message