You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/12/27 11:03:59 UTC
karaf-cellar git commit: Generate pdf with a profile to allow users
without prince to create documentation
Repository: karaf-cellar
Updated Branches:
refs/heads/master 6f0e2c4df -> 2bc858bfb
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/2bc858bf
Tree: http://git-wip-us.apache.org/repos/asf/karaf-cellar/tree/2bc858bf
Diff: http://git-wip-us.apache.org/repos/asf/karaf-cellar/diff/2bc858bf
Branch: refs/heads/master
Commit: 2bc858bfb8393c979a3b2570d178ba6aa3718879
Parents: 6f0e2c4
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Sun Dec 27 11:03:43 2015 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Sun Dec 27 11:03:43 2015 +0100
----------------------------------------------------------------------
manual/pom.xml | 76 +++++++++++++++++++++++++++--------------------------
1 file changed, 39 insertions(+), 37 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/2bc858bf/manual/pom.xml
----------------------------------------------------------------------
diff --git a/manual/pom.xml b/manual/pom.xml
index dee6d3a..3c53e50 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-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>
- <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-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>