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

Adrien Quillet commented on IVY-1538:
-------------------------------------

Up

> Is Ivy publication branch value a bug or desired value/behavior?
> ----------------------------------------------------------------
>
>                 Key: IVY-1538
>                 URL: https://issues.apache.org/jira/browse/IVY-1538
>             Project: Ivy
>          Issue Type: Question
>          Components: Core
>    Affects Versions: 2.4.0
>            Reporter: Adrien Quillet
>              Labels: behavior, question
>
> I have some doubts about default value of Ivy deliver branch. 
> In Ivy {{publish}} task, the publication branch value is get from property 
> {{ivy.deliver.branch}}. If this property is not set, the default branch value 
> (as specified in Ivy settings file) is used.
> Why does the branch value specified in the module descriptior of the artifact 
> ({{module.ivy}}) is not used before the default branch value?
> For example, considering the following {{module.ivy}} file and an Ivy 
> settings file which set the default branch to {{master}}, the described 
> artifact will be published in {{master}} branch, not in {{my.branch}} branch. 
> {code:xml}
> <ivy-module version="2.0" xmlns:ea="http://www.easyant.org";> 
>       <info organisation="my.org" module="my.mod" branch="my.branch" 
> status="integration" revision="1.0.0">
>               <ea:build organisation="org.apache.easyant.buildtypes" 
> module="build-std-java" revision="0.+">
>                 </ea:build>
>       </info>
>       
>       <publications>
>       </publications>
>       
>       <dependencies>
>       </dependencies>
> </ivy-module>
> {code}
> But, if I explicitly set the property {{ivy.deliver.branch}} (as in the 
> following {{module.ivy}}), artifact pub branch is {{my.branch}}. 
> {code:xml}
> <ivy-module version="2.0" xmlns:ea="http://www.easyant.org";> 
>       <info organisation="my.org" module="my.mod" branch="my.branch" 
> status="integration" revision="1.0.0">
>               <ea:build organisation="org.apache.easyant.buildtypes" 
> module="build-std-java" revision="0.+">
>                         <ea:property name="ivy.deliver.branch" 
> value="my.branch" />
>                 </ea:build>
>       </info>
>       
>       <publications>
>       </publications>
>       
>       <dependencies>
>       </dependencies>
> </ivy-module>
> {code}
> Is it the desired behavior ? If so, what is the point of specifying 
> {{branch}} attribute in {{info}} tag of artifact modules ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to