fixed small bug in doInstall method

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
michal 2003-06-24 16:20:51 +00:00
parent 1a55848f66
commit a460147e30

View File

@ -74,7 +74,7 @@ import org.apache.maven.util.MD5Sum;
* Default implemenataion of Artifact Deployer interface
*
* @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
* @version $Id: DefaultArtifactDeployer.java,v 1.6 2003/06/23 09:49:38 michal Exp $
* @version $Id: DefaultArtifactDeployer.java,v 1.7 2003/06/24 16:20:51 michal Exp $
*/
public class DefaultArtifactDeployer implements ArtifactDeployer
{
@ -210,11 +210,11 @@ public class DefaultArtifactDeployer implements ArtifactDeployer
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);