You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2014/10/18 23:42:07 UTC

svn commit: r1632845 - /maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java

Author: khmarbaise
Date: Sat Oct 18 21:42:07 2014
New Revision: 1632845

URL: http://svn.apache.org/r1632845
Log:
[MPDF-66]
 - Patch applied by Leo Breuss

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=1632845&r1=1632844&r2=1632845&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 Sat Oct 18 21:42:07 2014
@@ -534,6 +534,12 @@ public class PdfMojo
             context.put( "generateTOC", generateTOC );
             context.put( "validate", validate);
 
+            // Put any of the properties in directly into the Velocity context
+            for ( Map.Entry<Object, Object> entry : project.getProperties().entrySet() )
+            {
+                context.put( (String) entry.getKey(), entry.getValue() );
+            }
+            
             final DocumentModel model = aggregate ? getDocumentModel( locale ) : null;
 
             try