maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager DefaultArtifactHandlerManager.java
Date Sat, 12 Mar 2005 19:42:51 GMT
brett       2005/03/12 11:42:51

  Modified:    maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager
                        DefaultArtifactHandlerManager.java
  Log:
  minor error handling improvement
  
  Revision  Changes    Path
  1.6       +5 -0      maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java
  
  Index: DefaultArtifactHandlerManager.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultArtifactHandlerManager.java	8 Mar 2005 21:08:10 -0000	1.5
  +++ DefaultArtifactHandlerManager.java	12 Mar 2005 19:42:51 -0000	1.6
  @@ -83,6 +83,11 @@
       public String path( Artifact artifact )
           throws ArtifactHandlerNotFoundException
       {
  +        if ( artifact.getType() == null )
  +        {
  +            throw new ArtifactHandlerNotFoundException( "Artifact handler is null for artifact
" + artifact );
  +        }
  +
           ArtifactHandler handler = getArtifactHandler( artifact.getType() );
   
           return interpolateLayout( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
handler.directory(), handler.extension() );
  
  
  

Mime
View raw message