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

jswdevteam commented on IVY-1635:
---------------------------------

My bad. This was solved by using keep="true" on the resolve task.

The documentation mentions that keep "defaults to *false* for an *inline* 
resolve and to true in any other case".

I was not aware of that.

> attributes of inline ivy:resolve not being re-used by post-resolve tasks
> ------------------------------------------------------------------------
>
>                 Key: IVY-1635
>                 URL: https://issues.apache.org/jira/browse/IVY-1635
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: jswdevteam
>            Priority: Major
>
> I tried to have one inline *resolve* task followed by several *retrieve* 
> tasks.
> Example:
> {{<ivy:resolve resolveId="resolve1" inline="true" organisation="myorg" 
> module="mymod" revision="${mymod.revision}" settingsRef="settings1"/>}}
> {{<ivy:retrieve resolveId="resolve1" pattern="external/lib/[artifact].[ext]" 
> type="lib" />}}
> {{<ivy:retrieve resolveId="resolve1" pattern="external/include/mymod.[ext]" 
> type="header"/>}}
>  
> I was expecting that the retrieve tasks would reuse the informations of the 
> resolve previously done. But I get this error:
> ??no organisation provided for ivy cache task: It can either be set 
> explicitly via the attribute 'organisation' or via 'ivy.organisation' 
> property *or a prior call to <resolve/>*??
>  
> If I don't call <ivy:resolve> and repeat all the attributes ({_}inline{_}, 
> {_}organization{_}, {_}module{_}, {_}revision{_}, etc.) {*}to each retrieve 
> task{*}, then it works.
> However I would think it more logical to resolve once and retrieve as many 
> time as needed using the same resolve info.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to