Issue Details (XML | Word | Printable)

Key: IVY-825
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Xavier Hanin
Reporter: Shawn Castrianni
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Ivy

dynamic resolveMode not being dynamic on branch

Created: 01/Jun/08 02:05 PM   Updated: 04/Jun/08 11:02 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0-RC1

Time Tracking:
Not Specified

Resolution Date: 04/Jun/08 11:02 AM


 Description  « Hide
Let's say I have an existing repository with published modules of (A branch A revision 1) being dependent on (B branch B revision 1) being dependent on (C branch C revision 1). Now I build a new C on a different branch C2 as revision 8 (doesn't really matter). If I then change my ivy settings file so that I have a module override for C to take branch C2 and resolveMode of dynamic, then when I get dependencies for A, I would expect to get this new revision 8 branch C2 version of C. Instead, the resolveMode of dynamic is properly changing the revision to look for latest.integration but it is keeping the old branch of C instead of C2. I was expecting the resolveMode of dynamic to allow dynamic branch names as well as revision numbers.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Xavier Hanin made changes - 03/Jun/08 09:25 AM
Field Original Value New Value
Assignee Xavier Hanin [ xavier ]
Repository Revision Date User Message
ASF #662776 Tue Jun 03 12:42:21 UTC 2008 xavier FIX: dynamic resolveMode not being dynamic on branch (IVY-825)
Files Changed
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/test-update-withvar.xml
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/test-write-full.xml
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/updated.xml
MODIFY /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
ADD /ant/ivy/core/trunk/test/repositories/branches/bar/bar1/trunk/5
ADD /ant/ivy/core/trunk/test/repositories/branches/bar/bar1/trunk/6
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/test-update.xml
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/core/resolve/ResolveTest.java
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParserTest.java
ADD /ant/ivy/core/trunk/test/repositories/branches/bar/bar1/trunk/5/ivy.xml
ADD /ant/ivy/core/trunk/test/repositories/branches/bar/bar1/trunk/6/bar1.jar
ADD /ant/ivy/core/trunk/test/repositories/branches/bar/bar1/trunk/6/ivy.xml
MODIFY /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
ADD /ant/ivy/core/trunk/test/repositories/branches/bar/bar1/trunk/5/bar1.jar
MODIFY /ant/ivy/core/trunk/CHANGES.txt
MODIFY /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleUpdaterTest.java
MODIFY /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriter.java
MODIFY /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/test.xml

Xavier Hanin added a comment - 03/Jun/08 12:42 PM
I've just added a junit test and a fix for this. Could you confirm it works for you?

Shawn Castrianni added a comment - 04/Jun/08 09:26 AM
Thanks. I am able to verify your change for IVY-825 works. Thanks for the quick response!

Xavier Hanin made changes - 04/Jun/08 11:02 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Fix Version/s 2.0-RC1 [ 12313012 ]