ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fajian Shi" <f...@saltare.com>
Subject How to set new property based on previous defined properties?
Date Tue, 10 Oct 2000 00:52:19 GMT
I am new to ant.
I am trying to convert my old makefile to ant's build.xml file. The first
problem I met is how to translate a lot definitions of variable in my
Makefile, such as

HOME_DIR=/home/builder/myproj/
SRC_DIR=$(HOME_DIR)src/
..
..

where the new variables depend on the previous. I am wandering if I can do
the similar thing in ant, like:

<property name="HOME_DIR" value="/home/builder/myproj/"/>
<property name="SRC_DIR" value="${HOME_DIR}src/"/>
..
..

++Fajian



Mime
View raw message