dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16879
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 493: Moving RTF generation to a custom pom.
------------------------------------------------------------
revno: 493
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Wed 2012-04-11 19:23:54 +0100
message:
Moving RTF generation to a custom pom.
added:
rtf-pom.xml
modified:
pom.xml
--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs
Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'pom.xml'
--- pom.xml 2012-02-18 17:01:17 +0000
+++ pom.xml 2012-04-11 18:23:54 +0000
@@ -313,60 +313,6 @@
</postProcess>
</configuration>
</execution>
-
- <!--
- <execution>
- <id>rtf-docs-en-user</id>
- <phase>package</phase>
- <goals>
- <goal>generate-rtf</goal>
- </goals>
- <configuration>
- <argLine>-Xmx1024m</argLine>
- <foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
- <doubleSided>1</doubleSided>
- <includes>dhis2_user_manual_en.xml</includes>
- <sourceDirectory>${docbook.source}/en/</sourceDirectory>
- <postProcess>
- <copy file="target/docbkx/rtf/dhis2_user_manual_en.rtf" todir="${docbook.target}/en/user" />
- </postProcess>
- </configuration>
- </execution>
- <execution>
- <id>rtf-docs-en-implementer</id>
- <phase>package</phase>
- <goals>
- <goal>generate-rtf</goal>
- </goals>
- <configuration>
- <argLine>-Xmx1024m</argLine>
- <foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
- <doubleSided>1</doubleSided>
- <includes>dhis2_implementation_guide_en.xml</includes>
- <sourceDirectory>${docbook.source}/en/</sourceDirectory>
- <postProcess>
- <copy file="target/docbkx/rtf/dhis2_implementation_guide_en.rtf" todir="${docbook.target}/en/implementer" />
- </postProcess>
- </configuration>
- </execution>
- <execution>
- <id>rtf-docs-en-end-user</id>
- <phase>package</phase>
- <goals>
- <goal>generate-rtf</goal>
- </goals>
- <configuration>
- <argLine>-Xmx1024m</argLine>
- <foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
- <doubleSided>1</doubleSided>
- <includes>dhis2_end_user_manual.xml</includes>
- <sourceDirectory>${docbook.source}/en/</sourceDirectory>
- <postProcess>
- <copy file="target/docbkx/rtf/dhis2_end_user_manual.rtf" todir="${docbook.target}/en/end-user" />
- </postProcess>
- </configuration>
- </execution>
- -->
</executions>
<dependencies>
<dependency>
=== added file 'rtf-pom.xml'
--- rtf-pom.xml 1970-01-01 00:00:00 +0000
+++ rtf-pom.xml 2012-04-11 18:23:54 +0000
@@ -0,0 +1,144 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.hisp.dhis</groupId>
+ <artifactId>dhis-documentation-docbook</artifactId>
+ <name>DHIS2 Documentation</name>
+ <version>2.7-SNAPSHOT</version>
+ <description>DHIS 2 Documentation</description>
+ <packaging>pom</packaging>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>docbkx.snapshots</id>
+ <name>Maven Plugin Snapshots</name>
+ <url>http://docbkx-tools.sourceforge.net/snapshots/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <properties>
+ <docbkx.plugin.version>2.0.14</docbkx.plugin.version>
+ <docbook.source>${project.basedir}/src/docbkx</docbook.source>
+ <docbook.target>${project.basedir}/target/site</docbook.target>
+ </properties>
+
+ <build>
+ <plugins>
+ <!--This section dynamically builds the build.properites which is replaced inside the document preface -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <tstamp>
+ <format property="now" pattern="yyyy-MM-dd HH:mm:ss"/>
+ </tstamp>
+ <exec executable="bzr" outputproperty="revision" failifexecutionfails="false">
+ <arg line="revno -q"/>
+ </exec>
+ <echo file="${project.basedir}/src/docbkx/build.properties" message="<?xml version='1.0' encoding='UTF-8'?><revhistory><revision><revnumber> ${revision}</revnumber><revremark>Version ${project.version} ${now}</revremark></revision></revhistory>" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.agilejava.docbkx</groupId>
+ <artifactId>docbkx-maven-plugin</artifactId>
+ <version>${docbkx.plugin.version}</version>
+ <configuration>
+ <xincludeSupported>true</xincludeSupported>
+ </configuration>
+ <executions>
+ <execution>
+ <id>rtf-docs-en-user</id>
+ <phase>package</phase>
+ <goals>
+ <goal>generate-rtf</goal>
+ </goals>
+ <configuration>
+ <argLine>-Xmx1024m</argLine>
+ <foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
+ <doubleSided>1</doubleSided>
+ <includes>dhis2_user_manual_en.xml</includes>
+ <sourceDirectory>${docbook.source}/en/</sourceDirectory>
+ <postProcess>
+ <copy file="target/docbkx/rtf/dhis2_user_manual_en.rtf" todir="${docbook.target}/en/user" />
+ </postProcess>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rtf-docs-en-implementer</id>
+ <phase>package</phase>
+ <goals>
+ <goal>generate-rtf</goal>
+ </goals>
+ <configuration>
+ <argLine>-Xmx1024m</argLine>
+ <foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
+ <doubleSided>1</doubleSided>
+ <includes>dhis2_implementation_guide_en.xml</includes>
+ <sourceDirectory>${docbook.source}/en/</sourceDirectory>
+ <postProcess>
+ <copy file="target/docbkx/rtf/dhis2_implementation_guide_en.rtf" todir="${docbook.target}/en/implementer" />
+ </postProcess>
+ </configuration>
+ </execution>
+ <execution>
+ <id>rtf-docs-en-end-user</id>
+ <phase>package</phase>
+ <goals>
+ <goal>generate-rtf</goal>
+ </goals>
+ <configuration>
+ <argLine>-Xmx1024m</argLine>
+ <foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
+ <doubleSided>1</doubleSided>
+ <includes>dhis2_end_user_manual.xml</includes>
+ <sourceDirectory>${docbook.source}/en/</sourceDirectory>
+ <postProcess>
+ <copy file="target/docbkx/rtf/dhis2_end_user_manual.rtf" todir="${docbook.target}/en/end-user" />
+ </postProcess>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.docbook</groupId>
+ <artifactId>docbook-xml</artifactId>
+ <version>4.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>com.agilejava.docbkx</groupId>
+ <artifactId>docbkx-fop-support</artifactId>
+ <version>${docbkx.plugin.version}</version>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <ansi>false</ansi>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>