ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Scope of Types
Date Tue, 05 Jun 2001 07:36:59 GMT
Peter Donald <> wrote:

> Can anyone give a good usecase forsharing type defs between peer
> projects?

Your counterargument is sharing values via the ${} syntax doesn't
require sharing types - but what if you want to share IDs?

Say project A defines a type mailaddressset - a set of email addresses
to use in the to field of a custom mailreport task.  In project A we

<mailaddressset id="send-report-to">
  <address to="" />
  <address to="" />

<target name="mail">
    <to refid="send-report-to" />

And now in project B I want to do something like

<projectref name="B">
  <A:mailaddressset id="send-report-to">
    <address to="" />

as I know Pete is not going to be interested in the reports I generate
when running it from project B.


View raw message