ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst de Haan <ern...@nl.euro.net>
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 Project.java 
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: zaphod.euronet.nl
   parsing buildfile build.xml with URI =  
file:/usr/home/ernst/jakarta-ant/build.xml
   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

-- 
Ernst de Haan
EuroNet Internet B.V.

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

Mime
View raw message