Sebastian Schuberth created IVY-1462:
----------------------------------------
Summary: Multiple triggers for same even are processed in reverse
order
Key: IVY-1462
URL: https://issues.apache.org/jira/browse/IVY-1462
Project: Ivy
Issue Type: Bug
Affects Versions: 2.3.0
Reporter: Sebastian Schuberth
I have defined multiple triggers for the "post-retrieve-artifact" event in my
ivysettings.xml like:
<triggers>
<ant-call target="-unzip-library-project" prefix="dep"
event="post-retrieve-artifact" filter="ext=aar OR ext=apklib" />
<ant-call target="-unzip-deps" prefix="dep"
event="post-retrieve-artifact" filter="type=jar AND ext=zip" />
<ant-call target="-unzip-javadoc" prefix="dep"
event="post-retrieve-artifact" filter="type=javadoc" />
<ant-call target="-jarjar" prefix="dep" event="post-retrieve-artifact"
filter="type=jar" />
</triggers>
I realized that the "-jarjar" target is unable to find the files extracted in
the "-unzip-library-project" target, because it actually gets executed before
the "-unzip-library-project" target. Making the "-jarjar" trigger the first one
fixes the problem.
I did not find any documentation on the order in which multiple triggers for
the same event are executed, but it seems to me as if it's the reverse order of
definition. If that's really the case, this should IMHO be changed to match the
order of definition as that's more natural. In any case the order should be
documented (I'd expect that information to be at
http://ant.apache.org/ivy/history/latest-milestone/settings/triggers.html).
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)