maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/artifact/deployer DefaultArtifactDeployer.java
Date Mon, 05 Jul 2004 18:57:00 GMT
michal      2004/07/05 11:57:00

  Modified:    maven-core/src/main/java/org/apache/maven/artifact/deployer
                        DefaultArtifactDeployer.java
  Log:
  Wagons should be using Unix paths
  
  Revision  Changes    Path
  1.9       +5 -7      maven-components/maven-core/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
  
  Index: DefaultArtifactDeployer.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DefaultArtifactDeployer.java	3 Jul 2004 13:05:50 -0000	1.8
  +++ DefaultArtifactDeployer.java	5 Jul 2004 18:57:00 -0000	1.9
  @@ -140,7 +140,7 @@
   
               if ( isSnapshot )
               {
  -                WagonUtils.fromString( artifact.getSnapshotVersionPath().substring( 1 ),
wagon, timestamp );
  +                WagonUtils.fromString( artifact.getSnapshotVersionUrlPath().substring(
1 ), wagon, timestamp );
               }
   
   
  @@ -151,7 +151,7 @@
   
                   if ( isSnapshot )
                   {
  -                    WagonUtils.fromString( pomArtifact.getSnapshotVersionPath().substring(
1 ), wagon, timestamp );
  +                    WagonUtils.fromString( pomArtifact.getSnapshotVersionUrlPath().substring(
1 ), wagon, timestamp );
                   }
               }
   
  @@ -197,10 +197,8 @@
   
           MavenArtifact artifact = artifactFactory.createArtifact( dependency );
   
  -        //@todo substriing operation should not be required
  -        String resource = artifact.getPath().substring( 1 );
  -
  -        System.out.println( "Deploying resource: " + resource + " (" + file.getPath() +
")" );
  +        //@todo substring operation should not be required
  +        String resource = artifact.getUrlPath().substring( 1 );
   
           wagon.put( file, resource );
   
  
  
  

Mime
View raw message