ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Making custom tasks globally available
Date Wed, 25 Jan 2006 11:36:49 GMT
Tommy Nordgren wrote:
> Quoting the following example from "Extreme Programming with Ant"
> <?xml version="1.0" ?>
> 
> <!DOCTYPE project [<!ENTITY sales SYSTEM
>                     "file:sales.xml>
>                     <!ENTITY common SYSTEM
>                     "file:common.xml">]>
> 
> <project name="eMarket" default="compile" basedir=".">
> 
> .....
> 
>     &common;
>     &sales;
> 
> </project>
> 
> Where can I put files for entities, so that they are available to ALL my 
> projects?
> 

I would use <import> on Ant1.6+, rather than XML includes. Then use 
properties to define locations

   <property name="root.dir" location="../.."/>
   <import file="${root.dir}/common.xml"/>

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


Mime
View raw message