Sebastian Dingel created IVY-1637:
-------------------------------------

             Summary: Default value of 'revConstraint' is not set, if 
'branchConstraint' is present in <dependency>
                 Key: IVY-1637
                 URL: https://issues.apache.org/jira/browse/IVY-1637
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.5.0
            Reporter: Sebastian Dingel


The 
[documentation|https://ant.apache.org/ivy/history/2.5.0/ivyfile/dependency.html]
 of iyv states:

 
||Attribute||Description||Required||
|revConstraint|the dynamic revision constraint originally used for this 
dependency. See 
[above|https://ant.apache.org/ivy/history/2.5.0/ivyfile/dependency.html#revision-constraint]
 for details.|No, defaults to the value of {{rev}}|

 

The behaviour of XmlModuleDescriptorParser is different. If attribute 
'branchConstraint' is given the parser does not fall back to 'rev'. It only 
falls back to rev, if 'branchConstraint' is not set.

 

Example:
{code:java}
<dependency org="some.org" name="SomeName" branch="master" 
branchConstraint="master" rev="1_12_1" conf="default" />{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to