maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r721543 - /maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java
Date Fri, 28 Nov 2008 18:03:41 GMT
Author: bentmann
Date: Fri Nov 28 10:03:41 2008
New Revision: 721543

URL: http://svn.apache.org/viewvc?rev=721543&view=rev
Log:
o Fixed IT plugin to create missing parent directories of output file

Modified:
    maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java

Modified: maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java?rev=721543&r1=721542&r2=721543&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java
(original)
+++ maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-uses-properties/src/main/java/org/apache/maven/plugin/coreit/UsesPropertiesMojo.java
Fri Nov 28 10:03:41 2008
@@ -48,7 +48,9 @@
     {
         try
         {
-            FileOutputStream fos = new FileOutputStream( new File( basedir, "target/project.properties"
) );
+            File file = new File( basedir, "target/project.properties" );
+            file.getParentFile().mkdirs();
+            FileOutputStream fos = new FileOutputStream( file );
 
             properties.store( fos, "# Properties generated by the execution of a mojo that
uses interpolated POM values for configuration." );
         }



Mime
View raw message