From nmaven-commits-return-402-apmail-incubator-nmaven-commits-archive=incubator.apache.org@incubator.apache.org Wed Jun 20 22:03:50 2007 Return-Path: Delivered-To: apmail-incubator-nmaven-commits-archive@locus.apache.org Received: (qmail 47597 invoked from network); 20 Jun 2007 22:03:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 22:03:49 -0000 Received: (qmail 48652 invoked by uid 500); 20 Jun 2007 22:03:53 -0000 Delivered-To: apmail-incubator-nmaven-commits-archive@incubator.apache.org Received: (qmail 48635 invoked by uid 500); 20 Jun 2007 22:03:53 -0000 Mailing-List: contact nmaven-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: nmaven-dev@incubator.apache.org Delivered-To: mailing list nmaven-commits@incubator.apache.org Received: (qmail 48626 invoked by uid 99); 20 Jun 2007 22:03:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 15:03:53 -0700 X-ASF-Spam-Status: No, hits=-98.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 15:03:48 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id D7F651A981A; Wed, 20 Jun 2007 15:03:28 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r549271 - /incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java Date: Wed, 20 Jun 2007 22:03:28 -0000 To: nmaven-commits@incubator.apache.org From: sisbell@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070620220328.D7F651A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sisbell Date: Wed Jun 20 15:03:28 2007 New Revision: 549271 URL: http://svn.apache.org/viewvc?view=rev&rev=549271 Log: (empty) Modified: incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java Modified: incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java?view=diff&rev=549271&r1=549270&r2=549271 ============================================================================== --- incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java (original) +++ incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImpl.java Wed Jun 20 15:03:28 2007 @@ -253,12 +253,14 @@ logger.info( "NMAVEN-002-018: Installing file into repository: File = " + artifact.getFile().getAbsolutePath() ); File artifactFile = artifact.getFile(); + if(!modifyProjectMetadata) { artifact.addMetadata( new ArtifactMetadataImpl( artifact, pomFile ) ); } - + mavenInstaller.install( artifactFile, artifact, artifactRepository ); + //This extra copy needed in using of SNAPSHOTS try { FileUtils.copyFile( artifactFile, @@ -270,6 +272,7 @@ artifact.getId() + ", File = " + ( ( artifact.getFile() != null ) ? artifact.getFile().getAbsolutePath() : "" ), e ); } + } else {