karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf-cellar git commit: Generate pdf with a profile to allow users without prince to create documentation
Date Sun, 27 Dec 2015 10:13:25 GMT
Repository: karaf-cellar
Updated Branches:
  refs/heads/cellar-3.0.x 7e6ff7f38 -> de1f5730c


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


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

Branch: refs/heads/cellar-3.0.x
Commit: de1f5730cd6ead1d0632790443966d84f46d4dbb
Parents: 7e6ff7f
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Sun Dec 27 11:13:11 2015 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Sun Dec 27 11:13:11 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/de1f5730/manual/pom.xml
----------------------------------------------------------------------
diff --git a/manual/pom.xml b/manual/pom.xml
index b561671..351457e 100644
--- a/manual/pom.xml
+++ b/manual/pom.xml
@@ -36,47 +36,6 @@
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.6</version>
-                <executions>
-                    <execution>
-                        <id>create-documentation</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>
-                    <!-- When editing the conf files, you can comment this line to run
-                        mvn jetty:run
-                       to have a live web site
-                    -->
-                    <webAppSourceDirectory>${project.build.directory}/generated-docs/</webAppSourceDirectory>
-                </configuration>
-            </plugin>
-            <plugin>
                 <groupId>org.asciidoctor</groupId>
                 <artifactId>asciidoctor-maven-plugin</artifactId>
                 <version>1.5.2</version>
@@ -117,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-documentation</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>


Mime
View raw message