Peter Donald <[EMAIL PROTECTED]> 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="[EMAIL PROTECTED]" />
  <address to="[EMAIL PROTECTED]" />
</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="[EMAIL PROTECTED]" />
  </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

Reply via email to