incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r603128 - in /incubator/nmaven/trunk: components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/ plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/
Date Tue, 11 Dec 2007 02:45:53 GMT
Author: brett
Date: Mon Dec 10 18:45:53 2007
New Revision: 603128

URL: http://svn.apache.org/viewvc?rev=603128&view=rev
Log:
[NMAVEN-96] repository builder fails to create missing directories in the local repository

Modified:
    incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java
    incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java

Modified: incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java?rev=603128&r1=603127&r2=603128&view=diff
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java
(original)
+++ incubator/nmaven/trunk/components/dotnet-repository/src/main/java/org/apache/maven/dotnet/repository/impl/RepositoryConverterImpl.java
Mon Dec 10 18:45:53 2007
@@ -125,9 +125,16 @@
                 artifact.setArtifactHandler( pomhandler );
 
                 File pomFile = new File( mavenRepository, pathOfPom( artifact ) );
+                pomFile.getParentFile().mkdirs();
                 FileWriter fileWriter = new FileWriter( pomFile );
-                new MavenXpp3Writer().write( fileWriter, model );
-                IOUtil.close( fileWriter );
+                try
+                {
+                    new MavenXpp3Writer().write( fileWriter, model );
+                }
+                finally
+                {
+                    IOUtil.close( fileWriter );
+                }
             }
             artifact.setArtifactHandler( handler );
         }

Modified: incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java?rev=603128&r1=603127&r2=603128&view=diff
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java
(original)
+++ incubator/nmaven/trunk/plugins/maven-repository-plugin/src/main/java/org/apache/maven/dotnet/plugin/repository/RepositoryAssemblerMojo.java
Mon Dec 10 18:45:53 2007
@@ -158,7 +158,7 @@
         }
         catch ( IOException e )
         {
-            throw new MojoExecutionException("NMAVEN-1700-008: Message = " +  e.getMessage()
);
+            throw new MojoExecutionException("NMAVEN-1700-008: Message = " +  e.getMessage(),
e );
         }
     }
 



Mime
View raw message