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(); )


Reply via email to