continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmora...@apache.org
Subject svn commit: r766743 - /continuum/trunk/continuum-data-management/data-management-cli/src/main/java/org/apache/maven/continuum/management/DataManagementCli.java
Date Mon, 20 Apr 2009 16:37:29 GMT
Author: jmorales
Date: Mon Apr 20 16:37:28 2009
New Revision: 766743

URL: http://svn.apache.org/viewvc?rev=766743&view=rev
Log:
Related to issue CONTINUUM-2039.


Modified:
    continuum/trunk/continuum-data-management/data-management-cli/src/main/java/org/apache/maven/continuum/management/DataManagementCli.java

Modified: continuum/trunk/continuum-data-management/data-management-cli/src/main/java/org/apache/maven/continuum/management/DataManagementCli.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-data-management/data-management-cli/src/main/java/org/apache/maven/continuum/management/DataManagementCli.java?rev=766743&r1=766742&r2=766743&view=diff
==============================================================================
--- continuum/trunk/continuum-data-management/data-management-cli/src/main/java/org/apache/maven/continuum/management/DataManagementCli.java
(original)
+++ continuum/trunk/continuum-data-management/data-management-cli/src/main/java/org/apache/maven/continuum/management/DataManagementCli.java
Mon Apr 20 16:37:28 2009
@@ -354,20 +354,22 @@
         
         Settings settings = getSettings( container );
         List<String> profileIds = settings.getActiveProfiles();
-        List<Profile> profiles = settings.getProfiles();
         Map<String, Profile> profilesAsMap = settings.getProfilesAsMap();
         if ( profileIds != null && !profileIds.isEmpty() )
         {
             for ( String profileId : profileIds )
             {
                 Profile profile = profilesAsMap.get( profileId );
-                List<Repository> repos = profile.getRepositories();
-                if ( repos != null && !repos.isEmpty() )
+                if ( profile != null )
                 {
-                    for ( Repository repo : repos )
+                    List<Repository> repos = profile.getRepositories();
+                    if ( repos != null && !repos.isEmpty() )
                     {
-                        remoteRepositories.add( factory.createArtifactRepository( repo.getId(),
repo
-                            .getUrl(), layout, null, null ) );
+                        for ( Repository repo : repos )
+                        {
+                            remoteRepositories.add( factory.createArtifactRepository( repo.getId(),
repo.getUrl(),
+                                                                                      layout,
null, null ) );
+                        }
                     }
                 }
             }



Mime
View raw message