ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Scope of Types
Date Tue, 05 Jun 2001 07:36:59 GMT
Peter Donald <donaldp@apache.org> 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
have

<mailaddressset id="send-report-to">
  <address to="bodewig@apache.org" />
  <address to="donaldp@apache.org" />
</mailaddressset>

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

And now in project B I want to do something like

<projectref name="B">
  <A:mailaddressset id="send-report-to">
    <address to="bodewig@apache.org" />
  </A:mailaddressset>
</projectref>

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

Stefan

Mime
View raw message