maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject svn commit: r1632845 - /maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
Date Sat, 18 Oct 2014 21:42:07 GMT
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



Mime
View raw message