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/02/25 07:12:55 UTC

git commit: [KARAF-2782] Isolate PDF manual generation in a specific profile

Repository: karaf-eik
Updated Branches:
  refs/heads/master d9fa9a695 -> 73bb522fc


[KARAF-2782] Isolate PDF manual generation in a specific profile


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

Branch: refs/heads/master
Commit: 73bb522fcb46bdeca49ad67ea9c85ebe9d8a3dc7
Parents: d9fa9a6
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Tue Feb 25 07:12:06 2014 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Tue Feb 25 07:12:06 2014 +0100

----------------------------------------------------------------------
 manual/pom.xml | 85 +++++++++++++++++++++++++++++++++++------------------
 1 file changed, 56 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-eik/blob/73bb522f/manual/pom.xml
----------------------------------------------------------------------
diff --git a/manual/pom.xml b/manual/pom.xml
index a050bb1..26cfb37 100644
--- a/manual/pom.xml
+++ b/manual/pom.xml
@@ -129,35 +129,6 @@
                 </dependencies>
             </plugin>
             <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="${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>
                 <artifactId>maven-war-plugin</artifactId>
                 <version>2.1</version>
                 <configuration>
@@ -207,7 +178,63 @@
             </plugin>
         </plugins>
     </build>
+    <profiles>
+         <profile>
+            <id>pdf-manual</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>attach-manual</id>
+                                <phase>install</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>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>build-helper-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>attach-artifacts</id>
+                                <phase>install</phase>
+                                <goals>
+                                    <goal>attach-artifact</goal>
+                                </goals>
+                                <configuration>
+                                    <artifacts>
+                                        <artifact>
+                                            <file>${manual}.pdf</file>
+                                            <type>pdf</type>
+                                        </artifact>
+                                    </artifacts>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
 
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
     <reporting>
         <plugins>
             <plugin>