mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
19.49.2011 33bf0ad082efd726d6059f3a91c27ace9d180706
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ! CCPL HEADER START
  !
  ! This work is licensed under the Creative Commons
  ! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
  ! To view a copy of this license, visit
  ! http://creativecommons.org/licenses/by-nc-nd/3.0/
  ! or send a letter to Creative Commons, 444 Castro Street,
  ! Suite 900, Mountain View, California, 94041, USA.
  !
  ! You can also obtain a copy of the license at
  ! src/main/resources/legal-notices/CC-BY-NC-ND.txt.
  ! See the License for the specific language governing permissions
  ! and limitations under the License.
  !
  ! If applicable, add the following below this CCPL HEADER, with the fields
  ! enclosed by brackets "[]" replaced with your own identifying information:
  !      Portions Copyright [yyyy] [name of copyright owner]
  !
  ! CCPL HEADER END
  !
  !      Copyright 2011 ForgeRock AS
  !    
-->
<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>
 <artifactId>opendj-docs</artifactId>
 <name>OpenDJ Core User Documentation</name>
 <inceptionYear>2011</inceptionYear>
 <licenses>
  <license>
   <name>CC BY-NC-ND 3.0</name>
   <url>http://creativecommons.org/licenses/by-nc-nd/3.0/</url>
   <comments>Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported</comments>
   <distribution>repo</distribution>
  </license>
 </licenses>
 <packaging>pom</packaging>
 <description>DocBook XML source for OpenDJ core user documentation. Java API and configuration reference documentation is generated from OpenDJ source code.</description>
 <properties>
  <docbkx-src>${basedir}/src/docbkx</docbkx-src>
  <dbstyle-dir>${basedir}/src/docbkx-stylesheets</dbstyle-dir>
  <docbkx-out>${basedir}/target/docbkx</docbkx-out>
  <site-out>${project.parent.basedir}/target/site</site-out>
 </properties>
 <build>
  <plugins>
   <plugin>
    <groupId>com.agilejava.docbkx</groupId>
    <artifactId>docbkx-maven-plugin</artifactId>
    <version>2.0.13-SNAPSHOT</version>
    <executions>
     <execution>
      <id>build-doc</id>
      <phase>pre-site</phase>
      <goals>
       <goal>generate-epub</goal>
       <goal>generate-html</goal>
       <goal>generate-pdf</goal>
       <goal>generate-rtf</goal>
       <goal>generate-manpages</goal>       
      </goals>
      <configuration>
       <!-- Comment the draft elements out for final build -->
       <draftMode>yes</draftMode>
       <draftWatermarkImage>http://docbook.sourceforge.net/release/images/draft.png</draftWatermarkImage>
 
       <includes>*/OpenDJ-*.xml</includes>
       <xincludeSupported>true</xincludeSupported>
 
       <!-- EPUB -->
       <epubCustomization>${dbstyle-dir}/epub/coredoc.xsl</epubCustomization>
       
       <!-- HTML -->
       <chunkedOutput>false</chunkedOutput>
       <htmlCustomization>${dbstyle-dir}/html/coredoc.xsl</htmlCustomization>
       <htmlStylesheet>css/coredoc.css</htmlStylesheet>
       
       <!-- PDF, RTF -->
       <foCustomization>${dbstyle-dir}/fo/coredoc.xsl</foCustomization>
 
       <!-- Resources required but not copied by DocBook.xsl.
            TODO: Figure out how to say foreach in ant. -->
       <preProcess>
        <copy todir='${docbkx-out}/epub/admin-guide/OpenDJ-Admin-Guide/images'>
         <fileset dir='${docbkx-src}/admin-guide/images' />
        </copy>
        <copy todir='${docbkx-out}/html/admin-guide/images'>
         <fileset dir='${docbkx-src}/admin-guide/images' />
        </copy>
        <copy todir='${docbkx-out}/html/admin-guide'>
         <fileset dir='${basedir}/src/main/resources' />
        </copy>
        <copy todir='${docbkx-out}/epub/dev-guide/OpenDJ-Dev-Guide/images'>
         <fileset dir='${docbkx-src}/dev-guide/images' />
        </copy>
        <copy todir='${docbkx-out}/html/dev-guide/images'>
         <fileset dir='${docbkx-src}/dev-guide/images' />
        </copy>
        <copy todir='${docbkx-out}/html/dev-guide'>
         <fileset dir='${basedir}/src/main/resources' />
        </copy>
        <copy todir='${docbkx-out}/epub/install-guide/OpenDJ-Install-Guide/images'>
         <fileset dir='${docbkx-src}/install-guide/images' />
        </copy>
        <copy todir='${docbkx-out}/html/install-guide/images'>
         <fileset dir='${docbkx-src}/install-guide/images' />
        </copy>
        <copy todir='${docbkx-out}/html/install-guide'>
         <fileset dir='${basedir}/src/main/resources' />
        </copy>
        <copy todir='${docbkx-out}/epub/release-notes/OpenDJ-Release-Notes/images'>
         <fileset dir='${docbkx-src}/release-notes/images' />
        </copy>
        <copy todir='${docbkx-out}/html/release-notes/images'>
         <fileset dir='${docbkx-src}/release-notes/images' />
        </copy>
        <copy todir='${docbkx-out}/html/release-notes'>
         <fileset dir='${basedir}/src/main/resources' />
        </copy>
       </preProcess>
      </configuration>
     </execution>
    </executions>
    <dependencies>
     <dependency>
      <groupId>net.sf.docbook</groupId>
      <artifactId>docbook-xml</artifactId>
      <version>5.0-all</version>
      <classifier>resources</classifier>
      <type>zip</type>
      <scope>runtime</scope>
     </dependency>
     <dependency>
      <groupId>net.sf.offo</groupId>
      <artifactId>fop-hyph</artifactId>
       <version>1.2</version> <!-- Should use 2.0, but it doesn't exist? -->
      <scope>runtime</scope>
     </dependency>
    </dependencies>
   </plugin>
   <plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <executions>
     <execution>
      <id>fix-legalnotice</id>
      <phase>site</phase>
      <goals>
       <goal>run</goal>
      </goals>
      <configuration>
       <detail>true</detail>
       <target>
        <!-- TODO: Figure out how to say foreach in ant. -->
        <copy file='${env.PWD}/legalnotice.html' todir='${basedir}/target/docbkx/html/admin-guide' />
        <copy file='${env.PWD}/legalnotice.html' todir='${basedir}/target/docbkx/html/dev-guide' />
        <copy file='${env.PWD}/legalnotice.html' todir='${basedir}/target/docbkx/html/install-guide' />
        <move file='${env.PWD}/legalnotice.html' todir='${basedir}/target/docbkx/html/release-notes' />       
       </target>
      </configuration>
     </execution>
    </executions>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <executions>
     <execution>
      <phase>site</phase>
      <goals>
       <goal>copy-resources</goal>
      </goals>
      <configuration>
       <outputDirectory>${site-out}/doc</outputDirectory>
       <resources>
        <resource>
         <directory>${docbkx-out}/epub/admin-guide</directory>
         <directory>${docbkx-out}/epub/dev-guide</directory>
         <directory>${docbkx-out}/epub/install-guide</directory>
         <directory>${docbkx-out}/epub/release-notes</directory>
         <includes>
          <include>**/*.epub</include>
         </includes>
        </resource>
        <resource>
         <directory>${docbkx-out}/html/</directory>
        </resource>
        <resource>
         <directory>${docbkx-out}/pdf</directory>
         <includes>
          <include>**/*.pdf</include>
         </includes>
        </resource>
        <resource>
         <directory>${docbkx-out}/rtf</directory>
         <includes>
          <include>**/*.rtf</include>
         </includes>
        </resource>
       </resources>
      </configuration>      
     </execution>
    </executions>
   </plugin>
  </plugins>
 </build>
 <parent>
  <groupId>org.opendj</groupId>
  <artifactId>opendj-project</artifactId>
  <version>3.0.0-SNAPSHOT</version>
 </parent>
</project>