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 Tue, 08 Mar 2005 21:08:10 GMT
brett       2005/03/08 13:08:10

  Modified:    maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager
                        DefaultArtifactHandlerManager.java
  Log:
  formatting
  
  Revision  Changes    Path
  1.5       +15 -14    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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultArtifactHandlerManager.java	29 Sep 2004 11:20:38 -0000	1.4
  +++ DefaultArtifactHandlerManager.java	8 Mar 2005 21:08:10 -0000	1.5
  @@ -1,13 +1,5 @@
   package org.apache.maven.artifact.handler.manager;
   
  -import org.apache.maven.artifact.Artifact;
  -import org.apache.maven.artifact.handler.ArtifactHandler;
  -import org.apache.maven.artifact.repository.ArtifactRepository;
  -import org.codehaus.plexus.util.StringUtils;
  -
  -import java.util.Map;
  -import java.util.Set;
  -
   /*
    * Copyright 2001-2004 The Apache Software Foundation.
    *
  @@ -24,6 +16,14 @@
    * limitations under the License.
    */
   
  +import org.apache.maven.artifact.Artifact;
  +import org.apache.maven.artifact.handler.ArtifactHandler;
  +import org.apache.maven.artifact.repository.ArtifactRepository;
  +import org.codehaus.plexus.util.StringUtils;
  +
  +import java.util.Map;
  +import java.util.Set;
  +
   /**
    * @author <a href="mailto:jason@maven.org">Jason van Zyl </a>
    * @version $Id: DefaultArtifactHandlerManager.java,v 1.1.1.1 2004/08/09
  @@ -34,7 +34,8 @@
   {
       private Map artifactHandlers;
   
  -    public ArtifactHandler getArtifactHandler( String type ) throws ArtifactHandlerNotFoundException
  +    public ArtifactHandler getArtifactHandler( String type )
  +        throws ArtifactHandlerNotFoundException
       {
           ArtifactHandler handler = (ArtifactHandler) artifactHandlers.get( type );
   
  @@ -68,7 +69,7 @@
       }
   
       public String localRepositoryPath( Artifact artifact, ArtifactRepository localRepository
)
  -         throws ArtifactHandlerNotFoundException
  +        throws ArtifactHandlerNotFoundException
       {
           return localRepository.getBasedir() + "/" + path( artifact );
       }
  @@ -79,16 +80,16 @@
           return remoteRepository.getUrl() + "/" + path( artifact );
       }
   
  -    public String path( Artifact artifact ) throws ArtifactHandlerNotFoundException
  +    public String path( Artifact artifact )
  +        throws ArtifactHandlerNotFoundException
       {
           ArtifactHandler handler = getArtifactHandler( artifact.getType() );
   
  -        return interpolateLayout( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
handler
  -            .directory(), handler.extension() );
  +        return interpolateLayout( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
handler.directory(), handler.extension() );
       }
   
       private String interpolateLayout( String groupId, String artifactId, String version,
String directory,
  -        String extension )
  +                                      String extension )
       {
           String layout = getLayout();
   
  
  
  

Mime
View raw message