ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Benigan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-889) Trigger only fires for the first dependency when the event is post-download-artifact
Date Mon, 08 Sep 2008 17:13:44 GMT

    [ https://issues.apache.org/jira/browse/IVY-889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629214#action_12629214
] 

Steve Benigan commented on IVY-889:
-----------------------------------

Thanks for pointing me in the correct direction.

Found the issue:
AntBuildTrigger:56 onlyOnce variable defaults to true

onlyOnce causes the ant build to execute on the first event.  Setting onlyonce="false" in
the trigger configuration (ivysettings.xml) fixes the issue.
This is not documented.  It should be documented in the class level javadoc as well as in
the Trigger section of the Reference documentation.
Also the camel case of the set/get is not correct.  It's currently setOnlyonce(boolean value)
but should probably be setOnlyOnce.


> Trigger only fires for the first dependency when the event is post-download-artifact
> ------------------------------------------------------------------------------------
>
>                 Key: IVY-889
>                 URL: https://issues.apache.org/jira/browse/IVY-889
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-2
>         Environment: OSX Leopard, Windows XP, JSE 1.5 and JSE 1.6, Ant 1.7.1
>            Reporter: Steve Benigan
>
> With an empty default cache directory I would expect the post-download-artifact to event
to trigger for each artifact but it is only triggering for the first dependency listed in
ivy.xml
> ivy.xml:
> ...
>         <dependency org="commons-lang" name="commons-lang" rev="1.0" conf="" />
>         <dependency org="commons-cli"  name="commons-cli"  rev="1.0"/>
> ...
> ivysettings.xml:
> ... 
>    <triggers>
>         <ant-build
>             antfile="${ivy.settings.dir}/build.xml"
>             target="test"
>             prefix="dep"
>             event="post-download-artifact"
>             filter="status=successful"/>
>     </triggers>
> ...
> build.xml
> ...
>     <target name="build">
>         <ivy:resolve/>
>     </target>
> ...
>     <target name="test">
>         <echo message="***** ${dep.organisation} ${dep.revision} ${dep.artifact} ${dep.ext}"/>

>     </target>
> Executing the build, only commons-lang artifact download (or whichever dependency is
resolved first) results in a call to the test target.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message