Merge lp:~annegentle/openstackbook/buildfile into lp:~murthyraju-manthena/openstackbook/trunk

Proposed by Anne Gentle
Status: Merged
Merged at revision: 4
Proposed branch: lp:~annegentle/openstackbook/buildfile
Merge into: lp:~murthyraju-manthena/openstackbook/trunk
Diff against target: 151 lines (+147/-0)
1 file modified
pom.xml (+147/-0)
To merge this branch: bzr merge lp:~annegentle/openstackbook/buildfile
Reviewer Review Type Date Requested Status
Murthy Raju Approve
Review via email: mp+71415@code.launchpad.net

Description of the change

This request adds a pom.xml that will enable the OpenStack Jenkins build machine to automatically build and publish this document.

To post a comment you must log in.
Revision history for this message
Murthy Raju (murthyraju-manthena) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'pom.xml'
2--- pom.xml 1970-01-01 00:00:00 +0000
3+++ pom.xml 2011-08-12 19:59:22 +0000
4@@ -0,0 +1,147 @@
5+
6+<project xmlns="http://maven.apache.org/POM/4.0.0"
7+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
9+
10+ <modelVersion>4.0.0</modelVersion>
11+
12+ <groupId>org.openstack.docs</groupId>
13+ <artifactId>openstack-guide</artifactId>
14+ <version>1.0.0-SNAPSHOT</version>
15+ <packaging>jar</packaging>
16+ <name>OpenStack Guides</name>
17+ <!-- ################################################ -->
18+ <!-- USE "mvn clean generate-sources" to run this POM -->
19+ <!-- ################################################ -->
20+ <profiles>
21+ <profile>
22+ <id>Rackspace Research Repositories</id>
23+ <activation>
24+ <activeByDefault>true</activeByDefault>
25+ </activation>
26+ <repositories>
27+ <repository>
28+ <id>rackspace-research</id>
29+ <name>Rackspace Research Repository</name>
30+ <url>http://maven.research.rackspacecloud.com/content/groups/public/</url>
31+ </repository>
32+ </repositories>
33+ <pluginRepositories>
34+ <pluginRepository>
35+ <id>rackspace-research</id>
36+ <name>Rackspace Research Repository</name>
37+ <url>http://maven.research.rackspacecloud.com/content/groups/public/</url>
38+ </pluginRepository>
39+ </pluginRepositories>
40+ </profile>
41+ </profiles>
42+
43+ <build>
44+ <resources>
45+ <resource>
46+ <directory>target/docbkx/pdf</directory>
47+ <excludes>
48+ <exclude>**/*.fo</exclude>
49+ </excludes>
50+ </resource>
51+ </resources>
52+ <plugins>
53+ <!--<plugin>
54+ <groupId>org.codehaus.mojo</groupId>
55+ <artifactId>batik-maven-plugin</artifactId>
56+ <version>1.0-beta-1</version>
57+
58+ <executions>
59+ <execution>
60+ <goals>
61+ <goal>rasterize</goal>
62+ </goals>
63+ <phase>generate-sources</phase>
64+ <configuration>
65+ <srcDir>${basedir}/source/docbkx/openstack-api-extensions/figures</srcDir>
66+ <destDir>${basedir}/target/docbkx/webhelp/apix-intro-proposal/content/figures</destDir>
67+ </configuration>
68+ </execution>
69+ </executions>
70+ </plugin>-->
71+ <plugin>
72+ <groupId>com.rackspace.cloud.api</groupId>
73+ <artifactId>clouddocs-maven-plugin</artifactId>
74+ <version>1.0.4-SNAPSHOT</version>
75+ <executions>
76+ <execution>
77+ <goals>
78+ <goal>generate-pdf</goal>
79+ <goal>generate-webhelp</goal>
80+ </goals>
81+ <phase>generate-sources</phase>
82+ </execution>
83+ </executions>
84+ <dependencies>
85+ <dependency>
86+ <groupId>org.docbook</groupId>
87+ <artifactId>docbook-xml</artifactId>
88+ <version>4.4</version>
89+ <scope>runtime</scope>
90+ </dependency>
91+ </dependencies>
92+ <configuration>
93+ <xincludeSupported>true</xincludeSupported>
94+ <sourceDirectory>source/docbkx</sourceDirectory>
95+ <includes>
96+ openstack-starter/Openstackbook.xml
97+ </includes>
98+ <highlightSource>false</highlightSource>
99+ <profileSecurity>reviewer</profileSecurity>
100+ <branding>openstack</branding>
101+ <enableDisqus>0</enableDisqus>
102+ <disqusShortname>openstackstarterdoc</disqusShortname>
103+ <enableGoogleAnalytics>1</enableGoogleAnalytics>
104+ <googleAnalyticsId>UA-17511903-6</googleAnalyticsId>
105+ <generateToc>
106+ appendix toc,title
107+ article/appendix nop
108+ article toc,title
109+ book title,figure,table,example,equation
110+ chapter toc,title
111+ part toc,title
112+ preface toc,title
113+ qandadiv toc
114+ qandaset toc
115+ reference toc,title
116+ set toc,title
117+ </generateToc>
118+ <!-- You can use this sectionAutolabelMaxDepth element to set the autonumbering of sections in output-->
119+ <!--<sectionAutolabelMaxDepth>1</sectionAutolabelMaxDepth>-->
120+ <postProcess>
121+ <!-- Copies the figures to the correct location for webhelp -->
122+ <copy todir="${basedir}/target/docbkx/webhelp/openstack-starter/openstack-starter-guide/figures">
123+ <fileset dir="${basedir}/source/docbkx/openstack-starter/images">
124+ <include name="**/*.png" />
125+ </fileset>
126+ </copy>
127+
128+ <!-- Starter Guide -->
129+
130+ <copy todir="${basedir}/target/docbkx/webhelp/cactus/openstack-compute/starter/">
131+ <fileset
132+ dir="${basedir}/target/docbkx/webhelp/openstack-starter/openstack-starter-guide/">
133+ <include name="**/*" />
134+ </fileset>
135+ </copy>
136+
137+ <!--Moves PDFs to the needed placement -->
138+ <move failonerror="false"
139+ file="${basedir}/target/docbkx/pdf/openstack-starter/openstack-starter-guide.pdf"
140+ tofile="${basedir}/target/docbkx/webhelp/cactus/openstack-compute/admin/openstack-starter-guide-cactus.pdf"/>
141+ <!--Deletes leftover uneeded directories -->
142+ <delete
143+ dir="${basedir}/target/docbkx/webhelp/openstack-starter"/>
144+ </postProcess>
145+ </configuration>
146+
147+ </plugin>
148+
149+ </plugins>
150+ </build>
151+</project>

Subscribers

People subscribed via source and target branches