[gatein-commits] gatein SVN: r5375 - exo/portal/branches/3.1.x/docs/reference-guide.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Nov 30 03:04:34 EST 2010


Author: hoang_to
Date: 2010-11-30 03:04:31 -0500 (Tue, 30 Nov 2010)
New Revision: 5375

Added:
   exo/portal/branches/3.1.x/docs/reference-guide/html-zip.xml
Modified:
   exo/portal/branches/3.1.x/docs/reference-guide/pom.xml
Log:
EXOGTN-183: Publish the reference guide in docbook format

Added: exo/portal/branches/3.1.x/docs/reference-guide/html-zip.xml
===================================================================
--- exo/portal/branches/3.1.x/docs/reference-guide/html-zip.xml	                        (rev 0)
+++ exo/portal/branches/3.1.x/docs/reference-guide/html-zip.xml	2010-11-30 08:04:31 UTC (rev 5375)
@@ -0,0 +1,21 @@
+<assembly>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <fileSets>
+   <fileSet>
+    <directory>en/</directory>
+    <outputDirectory>org.gatein.doc</outputDirectory>
+    <includes>
+      <include>**/*.xml</include>
+      <include>**/*.png</include>
+      <include>**/*.ent</include>
+     </includes>
+    <!--excludes>
+      <exclude>**/*.fo</exclude>
+      <exclude>**/*.pdf</exclude>
+    </excludes-->
+   </fileSet>
+  </fileSets>
+</assembly>

Modified: exo/portal/branches/3.1.x/docs/reference-guide/pom.xml
===================================================================
--- exo/portal/branches/3.1.x/docs/reference-guide/pom.xml	2010-11-30 07:18:16 UTC (rev 5374)
+++ exo/portal/branches/3.1.x/docs/reference-guide/pom.xml	2010-11-30 08:04:31 UTC (rev 5375)
@@ -34,4 +34,50 @@
     <packaging>jdocbook</packaging>
     <name>GateIn Reference Guide en</name>
 
+    <build>
+      <plugins>
+        <!-- Zip the reference guide -->
+        <plugin>
+          <artifactId>maven-assembly-plugin</artifactId>
+           <executions> 
+	    <execution>
+             	<id>doc-zip-packaging</id>
+                <phase>package</phase>
+                <goals>
+                   <goal>single</goal>
+                </goals>
+                <configuration>
+                  <descriptors>
+                    <descriptor>html-zip.xml</descriptor>
+                  </descriptors>
+                </configuration>
+             </execution>
+           </executions>
+        </plugin>
+
+        <!-- Attach the doc to the pom in maven repo -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-artifacts</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+            <configuration>
+              <artifacts>
+                <artifact>
+                  <file>target/${project.artifactId}-${project.version}.zip</file>
+                  <type>zip</type>
+                </artifact>
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      </plugins>
+    </build>
 </project>



More information about the gatein-commits mailing list