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/repository/layout DefaultRepositoryLayout.java LegacyRepositoryLayout.java AbstractArtifactRepositoryLayout.java
Date Fri, 01 Apr 2005 04:09:37 GMT
brett       2005/03/31 20:09:37

  Modified:    maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout
                        DefaultRepositoryLayout.java
                        LegacyRepositoryLayout.java
  Removed:     maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout
                        AbstractArtifactRepositoryLayout.java
  Log:
  remove unneeded code
  
  Revision  Changes    Path
  1.8       +0 -13     maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java
  
  Index: DefaultRepositoryLayout.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DefaultRepositoryLayout.java	1 Apr 2005 02:45:05 -0000	1.7
  +++ DefaultRepositoryLayout.java	1 Apr 2005 04:09:36 -0000	1.8
  @@ -68,19 +68,6 @@
       {
           Artifact artifact = metadata.getArtifact();
   
  -        ArtifactHandler artifactHandler = null;
  -
  -        try
  -        {
  -            // TODO: this is a poor excuse to have this method throwing an exception. Validate
the artifact first, perhaps associate the handler with it
  -            artifactHandler = artifactHandlerManager.getArtifactHandler( artifact.getType()
);
  -        }
  -        catch ( ArtifactHandlerNotFoundException e )
  -        {
  -            throw new ArtifactPathFormatException( "Cannot find ArtifactHandler for artifact:
\'" + artifact.getId()
  -                + "\'.", e );
  -        }
  -
           StringBuffer path = new StringBuffer();
   
           path.append( artifact.getGroupId().replace( '.', '/' ) ).append( '/' );
  
  
  
  1.8       +0 -13     maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/LegacyRepositoryLayout.java
  
  Index: LegacyRepositoryLayout.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/LegacyRepositoryLayout.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LegacyRepositoryLayout.java	1 Apr 2005 02:45:05 -0000	1.7
  +++ LegacyRepositoryLayout.java	1 Apr 2005 04:09:37 -0000	1.8
  @@ -67,19 +67,6 @@
       {
           Artifact artifact = metadata.getArtifact();
           
  -        ArtifactHandler artifactHandler = null;
  -        
  -        try
  -        {
  -            // TODO: this is a poor excuse to have this method throwing an exception. Validate
the artifact first, perhaps associate the handler with it
  -            artifactHandler = artifactHandlerManager.getArtifactHandler( artifact.getType()
);
  -        }
  -        catch ( ArtifactHandlerNotFoundException e )
  -        {
  -            throw new ArtifactPathFormatException( "Cannot find ArtifactHandler for artifact:
\'" + artifact.getId()
  -                + "\'.", e );
  -        }
  -        
           StringBuffer path = new StringBuffer();
           
           path.append(artifact.getGroupId()).append("/poms/");
  
  
  

Mime
View raw message