Repository: karaf-cave Updated Branches: refs/heads/cave-3.x 98fbd4604 -> 447fca7f4
Generate pdf with a profile to allow users without prince to create documentation Project: http://git-wip-us.apache.org/repos/asf/karaf-cave/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf-cave/commit/447fca7f Tree: http://git-wip-us.apache.org/repos/asf/karaf-cave/tree/447fca7f Diff: http://git-wip-us.apache.org/repos/asf/karaf-cave/diff/447fca7f Branch: refs/heads/cave-3.x Commit: 447fca7f4ba51f7e7e4376c40444c8573dbd1bc6 Parents: 98fbd46 Author: Jean-Baptiste Onofré <[email protected]> Authored: Sun Dec 27 09:27:02 2015 +0100 Committer: Jean-Baptiste Onofré <[email protected]> Committed: Sun Dec 27 09:27:02 2015 +0100 ---------------------------------------------------------------------- manual/pom.xml | 68 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 29 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf-cave/blob/447fca7f/manual/pom.xml ---------------------------------------------------------------------- diff --git a/manual/pom.xml b/manual/pom.xml index 5720a50..8c988aa 100644 --- a/manual/pom.xml +++ b/manual/pom.xml @@ -36,35 +36,6 @@ <build> <plugins> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.6</version> - <executions> - <execution> - <id>create-manual</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.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <version>1.5.2</version> @@ -105,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-manual</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>
