Author: sisbell
Date: Wed Jun  6 20:38:14 2007
New Revision: 545046

URL: http://svn.apache.org/viewvc?view=rev&rev=545046
Log:
Fixed problem that broke IT 0028 and 0030.

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=545046&r1=545045&r2=545046
==============================================================================
--- 
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  6 20:38:14 2007
@@ -247,7 +247,19 @@
         {
             if ( artifact.getFile() != null && artifact.getFile().exists() 
)//maybe just a test compile and no install
             {
-                mavenInstaller.install( artifact.getFile(), artifact, 
artifactRepository );
+                File artifactFile = artifact.getFile();
+                mavenInstaller.install( artifactFile, artifact, 
artifactRepository );
+                try
+                {
+                    FileUtils.copyFile( artifactFile,
+                                        new File( localRepository, new 
DefaultRepositoryLayout().pathOf( artifact ) ) );
+                }
+                catch ( IOException e )
+                {
+                    throw new ArtifactInstallationException( "NMAVEN-002-003a: 
Failed to install artifact: ID = " +
+                        artifact.getId() + ", File = " +
+                        ( ( artifact.getFile() != null ) ? 
artifact.getFile().getAbsolutePath() : "" ), e );
+                }
             }
         }
         catch ( ArtifactInstallationException e )


Reply via email to