ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <Sebastien.Bl...@alcatel.com>
Subject Re: DOCTYPE XML include
Date Wed, 05 Mar 2003 17:50:01 GMT
thanx.
is there a rough timeframe for ANT 1.6 first releases ?
seb.

Dominique Devienne wrote:

> The other way is to define a custom URL protocol. I implemented a simple
> resource: protocol, which looks for the file as a simple resource on the
> classpath. You can then simply package your XML build snippet inside a JAR
> for example. Of course, <import> in 1.6 will be more convenient. --DD
>
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Wednesday, March 05, 2003 1:57 AM
> To: user@ant.apache.org
> Subject: AW: DOCTYPE XML include
>
> If the xml parser should do the job (here you are using
> xml entity), the path has to be hardcoded, because no other
> program is running which can resolve variables.
>
> The <import> task is in the CVS head of Ant 1.6. Because
> Ant 1.5.2 is for several bugfixes and NO enhancements, it isn´t there.
> But you can download the 1.6 binaries from the website. Because
> <import> is an Ant task it can resolve properties.
>
> Another way would be write a build.xml-template and make text substitutions.
> 1. build.template:    <!DOCTYPE... SYSTEM "@pathBuilddefs@">]>
> 2. substitute (e.g. with another buidlfile):  @pathBuilddefs@ -->
> file:../../build/builddefs.xml
>    (for that substitution you can use variables/properties)
> 3. run the generated buildfile
> Not fine, but could work :-)
>
> Jan Matèrne
>
> -----Ursprüngliche Nachricht-----
> Von: Sebastien Blanc [mailto:Sebastien.Blanc@alcatel.com]
> Gesendet am: Mittwoch, 5. März 2003 03:57
> An: ant-user@jakarta.apache.org
> Betreff: DOCTYPE XML include
>
> Hi !
>
> is there a way to avoid the hardcoded path in
>
> <!DOCTYPE project [
>  <!ENTITY builddefs SYSTEM "file:../../build/builddefs.xml">
> ]>
>
> I was hoping that this was using a resolver that could find my
> builddefs.xml in my one of the resource in the ANT classpath.
>
> will the import task resolve this pb ? if so, when is this supposed to
> be released ?
>
> thanx.
>
> seb.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message