[MARTIFACT-19] DefaultArtifactInstaller should only overwrite files if timestamp has changed

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@808537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Fabulich 2009-08-27 17:09:42 +00:00
parent 481eefc1b3
commit 7e24255ab4
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class DefaultArtifactInstaller
getLogger().info( "Installing " + source.getPath() + " to " + destination ); getLogger().info( "Installing " + source.getPath() + " to " + destination );
FileUtils.copyFile( source, destination ); FileUtils.copyFileIfModified( source, destination );
// must be after the artifact is installed // must be after the artifact is installed
for ( ArtifactMetadata metadata : artifact.getMetadataList() ) for ( ArtifactMetadata metadata : artifact.getMetadataList() )