michal      2003/06/24 09:20:52

  Modified:    src/plugins-build/artifact/src/main/org/apache/maven/artifact/deployer
                        DefaultArtifactDeployer.java
  Log:
  fixed small bug in doInstall method
  
  Revision  Changes    Path
  1.7       +4 -4      
maven/src/plugins-build/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
  
  Index: DefaultArtifactDeployer.java
  ===================================================================
  RCS file: 
/home/cvs/maven/src/plugins-build/artifact/src/main/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DefaultArtifactDeployer.java      23 Jun 2003 09:49:38 -0000      1.6
  +++ DefaultArtifactDeployer.java      24 Jun 2003 16:20:51 -0000      1.7
  @@ -210,11 +210,11 @@
                   new File(
                       getLocalRepository(project),
                       getRepositoryPath(type, project, version));
  -            if (!file.exists())
  +            if (!destFile.exists())
               {
  -                file.mkdirs();
  +                destFile.mkdirs();
               }
  -            file = new File(file, getRepositoryFile(type, project, version));
  +            destFile = new File(file, getRepositoryFile(type, project, version));
               System.out.println(
                   "Copying: from '" + file + "' to: '" + destFile + "'");
               FileUtils.copyFile(file, destFile);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to