dion        2003/07/16 18:02:28

  Modified:    src/java/org/apache/maven ArtifactListBuilder.java
  Log:
  Docs and a little code clean
  
  Revision  Changes    Path
  1.9       +5 -5      maven/src/java/org/apache/maven/ArtifactListBuilder.java
  
  Index: ArtifactListBuilder.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/ArtifactListBuilder.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ArtifactListBuilder.java  11 Apr 2003 23:45:33 -0000      1.8
  +++ ArtifactListBuilder.java  17 Jul 2003 01:02:28 -0000      1.9
  @@ -56,6 +56,7 @@
    * ====================================================================
    */
   
  +import org.apache.commons.lang.StringUtils;
   import org.apache.maven.project.Dependency;
   import org.apache.maven.project.Project;
   import org.apache.maven.repository.Artifact;
  @@ -83,8 +84,9 @@
        * taking into account any user specified overrides.
        *
        * @param project MavenSession project.
  +     * @return the list of artifacts for a project
        */
  -    public static List build( Project project  )
  +    public static List build( final Project project  )
       {
           List projectArtifacts = new ArrayList();
           boolean mavenJarOverride = 
project.getContext().getMavenJarOverride().booleanValue();
  @@ -95,9 +97,7 @@
               String mavenJarProperty = project.getContext().getMavenJarOverride( 
Project.standardToLegacyId( d.getId() ) );
               Artifact artifact = DefaultArtifactFactory.createArtifact( d );
   
  -            if (    mavenJarOverride
  -                 && mavenJarProperty != null
  -                 && mavenJarProperty.length() > 0 )
  +            if ( mavenJarOverride && StringUtils.isNotEmpty(mavenJarProperty) )
               {
                   // The jar override option has been set and we have a property
                   // for the this dependency so override the path with the user
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to