ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: multiple entity includes?
Date Wed, 13 Nov 2002 16:02:50 GMT
You mean doing something like this? --DD

--- acme/jeewiz/common.xml ---
...
--- acme/jeewiz/recurse.xml ---
...
--- acme/jeewiz/build.xml ---
<?xml version="1.0"?>

<!DOCTYPE project [
  <!ENTITY common  SYSTEM "common.xml">
  <!ENTITY recurse SYSTEM "recurse.xml">
]>

<project name="jeewiz"
         default="build">

  <property name="acme.cvsroot" location=".." />

  <!-- Common targets to traverse directories. -->
  &common;
  &recurse;

...

</project>


--- acme/foobar/build.xml ---
<?xml version="1.0"?>

<!DOCTYPE project [
  <!ENTITY common  SYSTEM "../jeewiz/common.xml">
  <!ENTITY recurse SYSTEM "../jeewiz/recurse.xml">
]>

<project name="foobar"
         default="build">

  <property name="acme.cvsroot" location=".." />

  <!-- Common targets to traverse directories. -->
  &common;
  &recurse;

...

</project>

-----Original Message-----
From: Nolan Ring [mailto:Nolan.Ring@Sun.COM] 
Sent: Wednesday, November 13, 2002 7:48 AM
To: ant-user@jakarta.apache.org
Subject: multiple entity includes?

Hi,

I would like to include two separate xml code snippets at different 
points in the same build.xml file(s).  I've tried a number of things like:

* Including all of the xml code in one file and calling it in in two places
* Trying to use the copy task to juggle file contents, and then include 
it in two places
* Others that I'd be embarassed to mention :-)

Is there a way to do this?

Thanks for any help/suggestions.

Nolan Ring

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message