ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rosenberg" <ja...@squaretrade.com>
Subject Re: "include" equivalent in ant?
Date Mon, 11 Dec 2000 15:38:44 GMT
Steve,

Can you give an example of how this might work?  Are any parsers
yet recognizing this syntax?  I have been trying to include some basic
things within an ant build.xml file, but can't seem to get it to behave
as desired.

Are there any more explanatory web-sites describing the usage
of this feature, as opposed to just the official spec, which is
a bit difficult to follow?

I am using the xml parser jar files that came with Ant 1.2.

Jason


----- Original Message ----- 
From: <stinney@sas.upenn.edu>
To: <ant-user@jakarta.apache.org>
Sent: Monday, December 11, 2000 8:15 AM
Subject: Re: "include" equivalent in ant?


> Peter Donald wrote:
> > 
> > At 02:25  11/12/00 -0500, Jason Rosenberg wrote:
> > >I would like to be able to include files as entities using paths
> > >referred to by property variables, etc., and it doesn't seem to
> > >be possible.  In other words, I'd like to see:
> > >
> > ><!ENTITY buildFW SYSTEM "${buildRules}/buildFW.inc">
> > >
> > >Is there anyway to do something like this?
> > 
> > there is a way via entity handlers I believe but it wouldn't be true XML
> > anymore. Not sure if that would be acceptable.
> > 
> > It would be possible to add it to core but I am not sure I would like it.
> > ie Would be fragments, raw text, documents etc. We are looking at such
> > things for ANt2 but that is a while off.
> 
> One thing to look at would be xinclude (http://www.w3.org/TR/xinclude),
> that would still be pure XML.
> 
>  Steve


Mime
View raw message