karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [47/50] git commit: Fix PDF generation of the EIK manual
Date Wed, 18 Dec 2013 13:10:11 GMT
Fix PDF generation of the EIK manual

git-svn-id: https://svn.apache.org/repos/asf/karaf/eik/trunk@1458414 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/master
Commit: 55be25b0c12573cb494b6c0b6b1de4b638fb09a1
Parents: 006fa10
Author: jbonofre <jbonofre@13f79535-47bb-0310-9956-ffa450edef68>
Authored: Tue Mar 19 17:17:25 2013 +0000
Committer: jbonofre <jbonofre@13f79535-47bb-0310-9956-ffa450edef68>
Committed: Tue Mar 19 17:17:25 2013 +0000

----------------------------------------------------------------------
 manual/pom.xml                     | 74 ++++++++++++++-------------------
 manual/src/main/webapp/manual.conf | 41 ++++++++++++++++++
 2 files changed, 73 insertions(+), 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-eik/blob/55be25b0/manual/pom.xml
----------------------------------------------------------------------
diff --git a/manual/pom.xml b/manual/pom.xml
index 180fad9..2a340f5 100644
--- a/manual/pom.xml
+++ b/manual/pom.xml
@@ -21,7 +21,7 @@
 
     <modelVersion>4.0.0</modelVersion>
 
-   <parent>
+    <parent>
         <groupId>org.apache.karaf.eik</groupId>
         <artifactId>parent</artifactId>
         <version>0.10.0-SNAPSHOT</version>
@@ -55,12 +55,12 @@
         <dependency>
             <groupId>org.scala-lang</groupId>
             <artifactId>scala-library</artifactId>
-	    <version>${scala.version}</version>
+            <version>${scala.version}</version>
         </dependency>
         <dependency>
             <groupId>org.scala-lang</groupId>
             <artifactId>scala-compiler</artifactId>
-	    <version>${scala.version}</version>
+            <version>${scala.version}</version>
         </dependency>
     </dependencies>
 
@@ -130,6 +130,35 @@
                 </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>
@@ -180,43 +209,4 @@
         </plugins>
     </reporting>
 
-    <profiles>
-        <profile>
-            <id>manual</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="${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>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
 </project>

http://git-wip-us.apache.org/repos/asf/karaf-eik/blob/55be25b0/manual/src/main/webapp/manual.conf
----------------------------------------------------------------------
diff --git a/manual/src/main/webapp/manual.conf b/manual/src/main/webapp/manual.conf
new file mode 100644
index 0000000..44dab1e
--- /dev/null
+++ b/manual/src/main/webapp/manual.conf
@@ -0,0 +1,41 @@
+{attributes:layout=/WEB-INF/scalate/layouts/print.ssp}
+
+{div:class=title}
+!/images/karaf-logos.png!
+\\
+\\
+\\
+\\
+Apache Karaf EIK
+Manual
+\\
+\\
+\\
+\\
+{div}
+
+{div:class=copyright-section}
+Copyright (c) 2013 The Apache Software Foundation
+
+The PDF format of the Karaf EIK Manual has been generated by Prince XML (http://www.princexml.org).
+{div}
+
+{div:class=toc-title}
+Table of contents
+{div}
+
+{toc:maxLevel=2}
+
+h1. Overview
+{include:overview.conf}
+
+h1. User Guide
+{include:user-guide/prerequisites.conf}
+{include:user-guide/supportedversions.html}
+{include:user-guide/installation.conf}
+{include:user-guide/createproject.conf}
+{include:user-guide/launchconf.conf}
+{include:user-guide/loadbundle.conf}
+{include:user-guide/uninstall.conf}
+{include:user-guide/devcomponent.conf}
+{include:user-guide/devcomponentwithm2e}


Mime
View raw message