ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mitch Gitman <>
Subject registering an Ivy listener
Date Tue, 05 May 2009 05:29:24 GMT
I'm interested in registering an *IvyListener *implementation to listen for
an *IvyEvent *of some sort. Assume we're working within an Ant script.

Now, I see that it's easy enough to register an *IvyListener **
programmatically*. Just obtain an *EventManager *like so:

And then on *EventManager*, I can call addIvyListener(...) to my heart's

But then I have to ask myself, "Why do I have to do this programmatically?
Why not just do it in the Ant script?" Here's an example from the Javadoc
for one particular *IvyListener*, *AntBuildTrigger*, at
 <ant-build-trigger event="pre-resolve-dependency"

So I'm figuring that there's a typedef preceding this to associate the
element ant-build-trigger with the *AntBuildTrigger *class. But the above
XML appears just to instantiate the trigger, not register it.

So does some XML like the above suffice to actually register the listener
and not just declare it? Or is there some extra XML needed to actually
register the listener with Ivy?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message