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 2014/11/07 06:30:06 UTC
karaf git commit: [KARAF-3352] Add html and pdf artifacts in the
manual
Repository: karaf
Updated Branches:
refs/heads/karaf-3.0.x e9a4ad2af -> 6be39b7f8
[KARAF-3352] Add html and pdf artifacts in the manual
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/6be39b7f
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/6be39b7f
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/6be39b7f
Branch: refs/heads/karaf-3.0.x
Commit: 6be39b7f8edd353f70238d57071939bea9367be7
Parents: e9a4ad2
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Fri Nov 7 06:29:30 2014 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Fri Nov 7 06:29:30 2014 +0100
----------------------------------------------------------------------
manual/pom.xml | 32 ++++++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/6be39b7f/manual/pom.xml
----------------------------------------------------------------------
diff --git a/manual/pom.xml b/manual/pom.xml
index 177c9a4..fcedcbb 100644
--- a/manual/pom.xml
+++ b/manual/pom.xml
@@ -305,9 +305,9 @@
<executions>
<execution>
<id>generate-htmls</id>
- <phase>compile</phase>
+ <phase>prepare-package</phase>
<goals>
- <goal>sitegen</goal>
+ <goal>sitegen-no-fork</goal>
</goals>
<configuration>
<warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory>
@@ -334,6 +334,34 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-manual</id>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <mkdir dir="${manual.dir}" />
+ <move file="${project.build.directory}/sitegen/manual.html" tofile="${manual}.html" />
+ <echo message="Generating PDF using Prince XML (http://www.princexml.com/)" />
+ <exec executable="prince">
+ <arg value="${manual}.html" />
+ <arg value="${manual}.pdf" />
+ <arg value="--log" />
+ <arg value="${project.build.directory}/prince.log" />
+ </exec>
+ <attachartifact file="${manual}.html" type="html" />
+ <attachartifact file="${manual}.pdf" type="pdf" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>