Repository: karaf-decanter
Updated Branches:
  refs/heads/master ef8ef2040 -> 0b9712b50


Generate pdf with a profile to allow users without prince to create 
documentation


Project: http://git-wip-us.apache.org/repos/asf/karaf-decanter/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-decanter/commit/0b9712b5
Tree: http://git-wip-us.apache.org/repos/asf/karaf-decanter/tree/0b9712b5
Diff: http://git-wip-us.apache.org/repos/asf/karaf-decanter/diff/0b9712b5

Branch: refs/heads/master
Commit: 0b9712b50797ce85d9d0c5ffb177f43d281bb431
Parents: ef8ef20
Author: Jean-Baptiste Onofré <[email protected]>
Authored: Sun Dec 27 09:24:36 2015 +0100
Committer: Jean-Baptiste Onofré <[email protected]>
Committed: Sun Dec 27 09:24:36 2015 +0100

----------------------------------------------------------------------
 manual/pom.xml | 76 +++++++++++++++++++++++++++--------------------------
 1 file changed, 39 insertions(+), 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/0b9712b5/manual/pom.xml
----------------------------------------------------------------------
diff --git a/manual/pom.xml b/manual/pom.xml
index 877e616..d2ff04e 100644
--- a/manual/pom.xml
+++ b/manual/pom.xml
@@ -36,43 +36,6 @@
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.6</version>
-                <executions>
-                    <execution>
-                        <id>create-user-guide</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                        <configuration>
-                            <tasks>
-                                <mkdir dir="target"/>
-                                <copy 
file="${project.build.directory}/generated-docs/index.html" 
tofile="target/documentation.html"/>
-                                <echo message="Generating PDF using Prince XML 
(http://www.princexml.com/)"/>
-                                <exec executable="prince">
-                                    <arg value="target/documentation.html"/>
-                                    <arg value="target/documentation.pdf"/>
-                                    <arg value="--log"/>
-                                    <arg 
value="${project.build.directory}/prince.log"/>
-                                </exec>
-                                <attachartifact 
file="target/documentation.html" type="html"/>
-                                <attachartifact 
file="target/documentation.pdf" type="pdf"/>
-                            </tasks>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.mortbay.jetty</groupId>
-                <artifactId>jetty-maven-plugin</artifactId>
-                <version>7.1.5.v20100705</version>
-                <configuration>
-                    
<webAppSourceDirectory>${project.build.directory}/generated-docs/</webAppSourceDirectory>
-                </configuration>
-            </plugin>
-            <plugin>
                 <groupId>org.asciidoctor</groupId>
                 <artifactId>asciidoctor-maven-plugin</artifactId>
                 <version>1.5.2</version>
@@ -113,4 +76,43 @@
         </plugins>
     </build>
 
+    <profiles>
+        <profile>
+            <id>pdf</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.6</version>
+                        <executions>
+                            <execution>
+                                <id>create-user-guide</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <mkdir dir="target"/>
+                                        <copy 
file="${project.build.directory}/generated-docs/index.html" 
tofile="target/documentation.html"/>
+                                        <echo message="Generating PDF using 
Prince XML (http://www.princexml.com/)"/>
+                                        <exec executable="prince">
+                                            <arg 
value="target/documentation.html"/>
+                                            <arg 
value="target/documentation.pdf"/>
+                                            <arg value="--log"/>
+                                            <arg 
value="${project.build.directory}/prince.log"/>
+                                        </exec>
+                                        <attachartifact 
file="target/documentation.html" type="html"/>
+                                        <attachartifact 
file="target/documentation.pdf" type="pdf"/>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
 </project>

Reply via email to