ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hewitt <>
Subject RE: How to include a variable in !ENTITY tag?
Date Fri, 11 May 2001 15:40:05 GMT
Hmmm ... You could have something create a DTD with a set of
entities whose values are set according to your local environment,
then you could instantiate that via a reference.  Of course, you
would need to know where this file is too...

Or, you could use XSLT to transform your XML build files using
the local environment before you let ant see them.

OK, - I think I'm telling you there are only comedy solutions,
though XSLT has some possibilities...Hmmm...


-----Original Message-----
From: Keith Kee []
Sent: 16 April 2001 17:23
Subject: How to include a variable in !ENTITY tag?

  I am new to ant, and is thinking of migrating from GNUMake environment. It
looks like it is possible to migrating from the current GNUmake environment
except one major problem: I cannot specify an environment variable to the
ENTITY tag like this.
  <!DOCTYPE project [
      <!ENTITY include SYSTEM "${CONFIG_DIR}/common.xml">

  Can somebody point out if this is possible, or if there is a viable
workaround? I search the mailing archive and FAQ with no avail.


View raw message