maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r893623 - /maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
Date Wed, 23 Dec 2009 20:37:56 GMT
Author: ltheussl
Date: Wed Dec 23 20:37:55 2009
New Revision: 893623

URL: http://svn.apache.org/viewvc?rev=893623&view=rev
Log:
[MPDF-36] Don't delete the workingDirectory so extra resources can be copied there before
the mojo executes.

Modified:
    maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java

Modified: maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java?rev=893623&r1=893622&r2=893623&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
(original)
+++ maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
Wed Dec 23 20:37:55 2009
@@ -509,22 +509,6 @@
     private void generatedPdf()
         throws MojoExecutionException, IOException
     {
-        try
-        {
-            FileUtils.deleteDirectory( workingDirectory );
-        }
-        catch ( IOException e )
-        {
-            if ( getLog().isDebugEnabled() )
-            {
-                getLog().error( "IOException: " + e.getMessage(), e );
-            }
-            else
-            {
-                getLog().error( "IOException: " + e.getMessage() );
-            }
-        }
-
         Locale.setDefault( getDefaultLocale() );
 
         for ( final Iterator iterator = getAvailableLocales().iterator(); iterator.hasNext();
)



Mime
View raw message