svn commit: r168216 - /maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r168216 - /maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java

Emmanuel Venisse
Author: evenisse
Date: Wed May  4 17:14:31 2005
New Revision: 168216

URL: http://svn.apache.org/viewcvs?rev=168216&view=rev
Log:
Create directory structure for generated report files

Modified:
    maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java

Modified: maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java?rev=168216&r1=168215&r2=168216&view=diff
==============================================================================
--- maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java (original)
+++ maven/components/trunk/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java Wed May  4 17:14:31 2005
@@ -61,7 +61,13 @@
     public Sink getSink( String outputName )
         throws IOException
     {
-        FileWriter writer = new FileWriter( new File( config.getOutputDirectory(), "xdoc/" + outputName + ".xml" ) );
+        File outputDir = new File( config.getOutputDirectory(), "xdoc/" );
+
+        outputDir.mkdirs();
+
+        File outputFile = new File( outputDir, outputName + ".xml" );
+
+        FileWriter writer = new FileWriter( outputFile );
 
         return new XdocSink( writer );
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]