You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2010/05/21 16:11:47 UTC

svn commit: r947014 - in /maven/plugins/trunk/maven-pdf-plugin: pom.xml src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java src/test/resources/unit/pdf/pom.xml

Author: ltheussl
Date: Fri May 21 14:11:47 2010
New Revision: 947014

URL: http://svn.apache.org/viewvc?rev=947014&view=rev
Log:
[MPDF-39] Make validation configurable

Modified:
    maven/plugins/trunk/maven-pdf-plugin/pom.xml
    maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
    maven/plugins/trunk/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml

Modified: maven/plugins/trunk/maven-pdf-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/pom.xml?rev=947014&r1=947013&r2=947014&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-pdf-plugin/pom.xml Fri May 21 14:11:47 2010
@@ -73,7 +73,7 @@ under the License.
   </issueManagement>
 
   <properties>
-    <doxiaVersion>1.1.2</doxiaVersion>
+    <doxiaVersion>1.1.3-SNAPSHOT</doxiaVersion>
     <mavenVersion>2.0.9</mavenVersion>
   </properties>
 

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=947014&r1=947013&r2=947014&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 Fri May 21 14:11:47 2010
@@ -331,6 +331,17 @@ public class PdfMojo
      */
     private String generateTOC;
 
+    /**
+     * Whether to validate xml input documents.
+     * If set to true, <strong>all</strong> input documents in xml format
+     * (in particular xdoc and fml) will be validated and any error will
+     * lead to a build failure.
+     *
+     * @parameter expression="${validate}" default-value="false"
+     * @since 1.2
+     */
+    private boolean validate;
+
     // ----------------------------------------------------------------------
     // Instance fields
     // ----------------------------------------------------------------------
@@ -537,6 +548,7 @@ public class PdfMojo
             context.put( "StringUtils", new StringUtils() );
             context.put( "i18n", i18n );
             context.put( "generateTOC", generateTOC );
+            context.put( "validate", Boolean.valueOf( validate ) );
 
             try
             {

Modified: maven/plugins/trunk/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml?rev=947014&r1=947013&r2=947014&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml (original)
+++ maven/plugins/trunk/maven-pdf-plugin/src/test/resources/unit/pdf/pom.xml Fri May 21 14:11:47 2010
@@ -36,6 +36,7 @@
           <implementation>fo</implementation>
           <aggregate>true</aggregate>
           <generateTOC>start</generateTOC>
+          <validate>true</validate>
         </configuration>
       </plugin>
     </plugins>