You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2007/08/03 02:42:52 UTC

svn commit: r562307 - /maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java

Author: brianf
Date: Thu Aug  2 17:42:51 2007
New Revision: 562307

URL: http://svn.apache.org/viewvc?view=rev&rev=562307
Log:
fixed MECLIPSE-292

Modified:
    maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java?view=diff&rev=562307&r1=562306&r2=562307
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/AbstractIdeSupportMojo.java Thu Aug  2 17:42:51 2007
@@ -946,7 +946,7 @@
                                                                             artifactFactory, remoteRepos, getLog() );
                 if ( artifact.isResolved() )
                 {
-                    if ( "sources".equals( classifier ) )   
+                    if ( "sources".equals( classifier ) )
                     {
                         dependency.setSourceAttachment( artifact.getFile() );
                     }
@@ -954,20 +954,20 @@
                     {
                         dependency.setJavadocAttachment( artifact.getFile() );
                     }
-                    else
-                    {
-                        unavailableArtifactsCache.put( dependency.getId() + ":" + classifier, Boolean.TRUE.toString() );
-                        // add the dependencies to the list
-                        // of those lacking the required
-                        // artifact
-                        missingClassifierDependencies.add( dependency );
-                    }
                 }
-
+                else
+                {
+                    unavailableArtifactsCache.put( dependency.getId() + ":" + classifier, Boolean.TRUE.toString() );
+                    // add the dependencies to the list
+                    // of those lacking the required
+                    // artifact
+                    missingClassifierDependencies.add( dependency );
+                }
             }
         }
 
-        // return the list of dependencies missing the required artifact
+        // return the list of dependencies missing the
+        // required artifact
         return missingClassifierDependencies;
 
     }