mirror of https://github.com/apache/maven.git
[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:
parent
481eefc1b3
commit
7e24255ab4
|
@ -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() )
|
||||||
|
|
Loading…
Reference in New Issue