You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "jswdevteam (Jira)" <ji...@apache.org> on 2022/03/11 05:44:00 UTC

[jira] [Updated] (IVY-1635) attributes of inline ivy:resolve not being re-used by post-resolve tasks

     [ https://issues.apache.org/jira/browse/IVY-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jswdevteam updated IVY-1635:
----------------------------
    Description: 
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.

  was:
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.


> 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.



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