Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 86709 invoked from network); 27 Dec 2009 23:30:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Dec 2009 23:30:27 -0000 Received: (qmail 15217 invoked by uid 500); 27 Dec 2009 23:30:27 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 15132 invoked by uid 500); 27 Dec 2009 23:30:26 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 15122 invoked by uid 99); 27 Dec 2009 23:30:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Dec 2009 23:30:26 +0000 X-ASF-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Dec 2009 23:30:16 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 79C7C14A8164 for ; Sun, 27 Dec 2009 17:29:55 -0600 (CST) Date: Sun, 27 Dec 2009 17:29:55 -0600 (CST) From: "Benjamin Bentmann (JIRA)" To: issues@maven.apache.org Message-ID: <1697209.44961.1261956595279.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <13855261.1211960123461.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Commented: (MNG-4368) DefaultArtifactInstaller should only overwrite files if timestamp has changed MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 [ http://jira.codehaus.org/browse/MNG-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204235#action_204235 ] Benjamin Bentmann commented on MNG-4368: ---------------------------------------- Revised in [r894114|http://svn.apache.org/viewvc?view=revision&revision=894114] to have artifact installation happen if any of the following conditions are met: * destination does not exist * artifact type is "pom" * destination has different timestamp than source * destination has different length than source > DefaultArtifactInstaller should only overwrite files if timestamp has changed > ----------------------------------------------------------------------------- > > Key: MNG-4368 > URL: http://jira.codehaus.org/browse/MNG-4368 > Project: Maven 2 & 3 > Issue Type: Improvement > Environment: Linux, JDK 1.5 > Reporter: Johannes Martin > Fix For: 2.2.2, 3.0-alpha-3 > > > install:install (from maven-install-plugin) by default uses DefaultArtifactInstaller to install artifacts. DefaultArtifactInstaller in turn uses FileUtils.copyFile(), thereby overwriting destination files even if they are unchanged. It would be helpful if DefaultArtifactInstaller used FileUtils.copyFileIfModified() instead, at least as an option, to speed up the build process. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira