~openstackbook/openstackbook/cactus

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