You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/05/20 15:56:52 UTC

cvs commit: maven-new/core/src/java/org/apache/maven/project/builder DependencyClasspathBuilder.java

jvanzyl     2003/05/20 06:56:52

  Modified:    core/src/java/org/apache/maven/project/builder
                        DependencyClasspathBuilder.java
  Log:
  o guard against projects having no artifacts.
  
  Revision  Changes    Path
  1.4       +6 -1      maven-new/core/src/java/org/apache/maven/project/builder/DependencyClasspathBuilder.java
  
  Index: DependencyClasspathBuilder.java
  ===================================================================
  RCS file: /home/cvs/maven-new/core/src/java/org/apache/maven/project/builder/DependencyClasspathBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DependencyClasspathBuilder.java	20 May 2003 04:06:54 -0000	1.3
  +++ DependencyClasspathBuilder.java	20 May 2003 13:56:52 -0000	1.4
  @@ -90,6 +90,11 @@
       public static String build( Project project )
           throws Exception
       {
  +        if ( !project.hasArtifacts() )
  +        {
  +            return null;
  +        }
  +
           StringBuffer classpath = new StringBuffer();
   
           for ( Iterator i = project.getArtifacts().iterator(); i.hasNext(); )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org