You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2010/07/06 00:54:52 UTC

svn commit: r960723 - in /openwebbeans/trunk/webbeans-doc: ./ pom.xml

Author: struberg
Date: Mon Jul  5 22:54:52 2010
New Revision: 960723

URL: http://svn.apache.org/viewvc?rev=960723&view=rev
Log:
build documentation only in profile 'doc'

Modified:
    openwebbeans/trunk/webbeans-doc/   (props changed)
    openwebbeans/trunk/webbeans-doc/pom.xml

Propchange: openwebbeans/trunk/webbeans-doc/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Jul  5 22:54:52 2010
@@ -1,5 +1,11 @@
 target
-docbook-xml
-.settings
+.metadata
 .classpath
 .project
+.settings
+*.iml
+*.ipr
+*.iws
+.git
+.gitignore
+

Modified: openwebbeans/trunk/webbeans-doc/pom.xml
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-doc/pom.xml?rev=960723&r1=960722&r2=960723&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-doc/pom.xml (original)
+++ openwebbeans/trunk/webbeans-doc/pom.xml Mon Jul  5 22:54:52 2010
@@ -25,90 +25,96 @@
     <name>Apache OpenWebBeans :: Documentation</name>
     <packaging>jar</packaging>
     <description>Apache OpenWebBeans Documentation</description>
-    <build>
-        <plugins>
-            <!-- Maven docbook configuration  -->
-            <plugin>
-                <groupId>com.agilejava.docbkx</groupId>
-                <artifactId>docbkx-maven-plugin</artifactId>
-                <version>2.0.8</version>
-                <executions>
-                    <execution>
-                        <id>single-pdf-page</id>
-                        <goals>
-                            <goal>generate-pdf</goal>
-                        </goals>
-                        <configuration>
-                            <calloutGraphicsPath>src/docbkx/resources/images/callouts/</calloutGraphicsPath>
-                            <admonGraphicsPath>src/docbkx/resources/images/admons/</admonGraphicsPath>
-                            <imgSrcPath>src/docbkx/resources/images/</imgSrcPath>
-                            <foCustomization>${basedir}/src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
-                            <draftMode>1</draftMode>
-                            <postProcess>
-                                <copy todir="${basedir}/target/site">
-                                    <fileset dir="${basedir}/target/docbkx">
-                                        <include name="**/*.pdf" />
-                                    </fileset>
-                                </copy>
-                            </postProcess>
-                        </configuration>
-                        <phase>generate-sources</phase>
-                    </execution>
-                    <execution>
-                        <id>single-html-page</id>
-                        <goals>
-                            <goal>generate-html</goal>
-                        </goals>
+
+    <profiles>
+        <profile>
+            <id>doc</id>
+            <build>
+                <plugins>
+                    <!-- Maven docbook configuration  -->
+                    <plugin>
+                        <groupId>com.agilejava.docbkx</groupId>
+                        <artifactId>docbkx-maven-plugin</artifactId>
+                        <version>2.0.8</version>
+                        <executions>
+                            <execution>
+                                <id>single-pdf-page</id>
+                                <goals>
+                                    <goal>generate-pdf</goal>
+                                </goals>
+                                <configuration>
+                                    <calloutGraphicsPath>src/docbkx/resources/images/callouts/</calloutGraphicsPath>
+                                    <admonGraphicsPath>src/docbkx/resources/images/admons/</admonGraphicsPath>
+                                    <imgSrcPath>src/docbkx/resources/images/</imgSrcPath>
+                                    <foCustomization>${basedir}/src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
+                                    <draftMode>1</draftMode>
+                                    <postProcess>
+                                        <copy todir="${basedir}/target/site">
+                                            <fileset dir="${basedir}/target/docbkx">
+                                                <include name="**/*.pdf" />
+                                            </fileset>
+                                        </copy>
+                                    </postProcess>
+                                </configuration>
+                                <phase>generate-sources</phase>
+                            </execution>
+                            <execution>
+                                <id>single-html-page</id>
+                                <goals>
+                                    <goal>generate-html</goal>
+                                </goals>
+                                <configuration>
+                                    <imgSrcPath>images/</imgSrcPath>
+                                    <chunkedOutput>false</chunkedOutput>
+                                    <targetDirectory>${basedir}/target/docbkx/html-single</targetDirectory>
+                                    <htmlStylesheet>css/html.css</htmlStylesheet>
+                                    <htmlCustomization>${basedir}/src/docbkx/resources/xsl/html.xsl</htmlCustomization>
+                                    <!--
+                                        Just because it's sometimes time costly, I
+                                        delete only this directory to allow re
+                                        generation by docbkx plugin During documentation
+                                        phase, it's useful because it allows a quick and
+                                        nice overview without costly pdf generation and
+                                        all packaging.
+                                    -->
+                                    <preProcess>
+                                        <delete dir="${basedir}/target/docbkx/html-single" />
+                                    </preProcess>
+                                    <postProcess>
+                                        <copy todir="${basedir}/target/site/html-single">
+                                            <fileset
+                                                dir="${basedir}/target/docbkx/html-single">
+                                                <include name="**/*.html" />
+                                            </fileset>
+                                        </copy>
+                                        <copy todir="${basedir}/target/site/html-single">
+                                            <fileset dir="${basedir}/src/docbkx/resources">
+                                                <include name="**/*.css" />
+                                                <include name="**/*.png" />
+                                                <include name="**/*.gif" />
+                                                <include name="**/*.jpg" />
+                                            </fileset>
+                                        </copy>
+                                    </postProcess>
+                                </configuration>
+                                <phase>generate-sources</phase>
+                            </execution>
+                        </executions>
                         <configuration>
-                            <imgSrcPath>images/</imgSrcPath>
-                            <chunkedOutput>false</chunkedOutput>
-                            <targetDirectory>${basedir}/target/docbkx/html-single</targetDirectory>
-                            <htmlStylesheet>css/html.css</htmlStylesheet>
-                            <htmlCustomization>${basedir}/src/docbkx/resources/xsl/html.xsl</htmlCustomization>
-                            <!--
-                                Just because it's sometimes time costly, I
-                                delete only this directory to allow re
-                                generation by docbkx plugin During documentation
-                                phase, it's useful because it allows a quick and
-                                nice overview without costly pdf generation and
-                                all packaging.
-                            -->
-                            <preProcess>
-                                <delete dir="${basedir}/target/docbkx/html-single" />
-                            </preProcess>
-                            <postProcess>
-                                <copy todir="${basedir}/target/site/html-single">
-                                    <fileset
-                                        dir="${basedir}/target/docbkx/html-single">
-                                        <include name="**/*.html" />
-                                    </fileset>
-                                </copy>
-                                <copy todir="${basedir}/target/site/html-single">
-                                    <fileset dir="${basedir}/src/docbkx/resources">
-                                        <include name="**/*.css" />
-                                        <include name="**/*.png" />
-                                        <include name="**/*.gif" />
-                                        <include name="**/*.jpg" />
-                                    </fileset>
-                                </copy>
-                            </postProcess>
+                            <xincludeSupported>true</xincludeSupported>
                         </configuration>
-                        <phase>generate-sources</phase>
-                    </execution>
-                </executions>
-                <configuration>
-                    <xincludeSupported>true</xincludeSupported>
-                </configuration>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.docbook</groupId>
-                        <artifactId>docbook-xml</artifactId>
-                        <version>4.4</version>
-                        <scope>runtime</scope>
-                    </dependency>
-                </dependencies>
-            </plugin>
-        </plugins>
-    </build>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.docbook</groupId>
+                                <artifactId>docbook-xml</artifactId>
+                                <version>4.4</version>
+                                <scope>runtime</scope>
+                            </dependency>
+                        </dependencies>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 
 </project>