ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-1127) branch field of dependencies is null after doing programmatic parsing of a module descriptor
Date Mon, 21 Sep 2009 02:55:16 GMT
branch field of dependencies is null after doing programmatic parsing of a module descriptor
--------------------------------------------------------------------------------------------

                 Key: IVY-1127
                 URL: https://issues.apache.org/jira/browse/IVY-1127
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.1.0-RC2
         Environment: Win 32/Java 1.5
            Reporter: Antoine Levy-Lambert


		ModuleDescriptorParserRegistry mdpr = ModuleDescriptorParserRegistry
				.getInstance();
		ModuleDescriptor md = mdpr.parseDescriptor(ivy.getSettings(), ivyFile
				.toURL(), true);
               DependencyDescriptor[] dependencies = md.getDependencies();
               for (int i = 0; i < dependencies.length; i++) {
				DependencyDescriptor dependency = dependencies[i];
				ModuleRevisionId depMrid = dependency.getDependencyRevisionId();
				if (depMrid.getRevision().startsWith("latest")) {
		
					String depModule = depMrid.getName();
					String depOrganisation = depMrid.getOrganisation();
					String depRevision = depMrid.getRevision();
                                        // I am getting null here
					String depBranch = depMrid.getBranch();
                               }
               }

Any idea what is going on here ? It looks a bit similar to IVY-1087

Regards,

Antoine



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message