[seam-commits] Seam SVN: r8140 - in trunk: build and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu May 8 11:59:42 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-05-08 11:59:42 -0400 (Thu, 08 May 2008)
New Revision: 8140

Added:
   trunk/doc/Seam_Reference_Guide/
Modified:
   trunk/build.xml
   trunk/build/docs.pom.xml
Log:
Initial merge of updated docs

Modified: trunk/build/docs.pom.xml
===================================================================
--- trunk/build/docs.pom.xml	2008-05-08 11:45:44 UTC (rev 8139)
+++ trunk/build/docs.pom.xml	2008-05-08 15:59:42 UTC (rev 8140)
@@ -1,16 +1,158 @@
-<?xml version="1.0" encoding="UTF-8"?>
 <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.jboss.seam</groupId>
-  <artifactId>jboss-seam-reference-documentation</artifactId>
-  <parent>
-    <groupId>org.jboss.seam</groupId>
-    <artifactId>parent</artifactId>
-    <version>2.1.0-SNAPSHOT</version>
-  </parent>
-  <version>2.1.0-SNAPSHOT</version>
-  <packaging>pdf</packaging>
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
-</project>
\ No newline at end of file
+   <modelVersion>4.0.0</modelVersion>
+
+   <groupId>org.jboss.seam.reference-guide</groupId>
+   <artifactId>seam-reference-guide</artifactId>
+   <version>@seam.version@</version>
+   <packaging>jdocbook</packaging>
+   <name>Seam Reference Guide</name>
+
+   <pluginRepositories>
+      <pluginRepository>
+         <id>repository.jboss.org</id>
+         <name>JBoss Repository</name>
+         <url>http://repository.jboss.org/maven2</url>
+      </pluginRepository>
+   </pluginRepositories>
+   <repositories>
+      <repository>
+         <id>repository.jboss.org</id>
+         <name>JBoss Repository</name>
+         <url>http://repository.jboss.org/maven2</url>
+      </repository>
+   </repositories>
+
+   <build>
+      <plugins>
+         <plugin>
+            <groupId>org.jboss.maven.plugins</groupId>
+            <artifactId>maven-jdocbook-plugin</artifactId>
+            <extensions>true</extensions>
+            <dependencies>
+               <dependency>
+                  <groupId>org.jboss.seam</groupId>
+                  <artifactId>seam-docbook-xslt</artifactId>
+                  <version>1.1.0.BETA2</version>
+                  <exclusions>
+                     <exclusion>
+                        <groupId>org.eclipse.wst.css</groupId>
+                        <artifactId>core</artifactId>
+                     </exclusion>
+                     <exclusion>
+                        <groupId>org.eclipse.wst.sse</groupId>
+                        <artifactId>core</artifactId>
+                     </exclusion>
+                  </exclusions>
+               </dependency>
+               <dependency>
+                  <groupId>org.jboss.seam</groupId>
+                  <artifactId>seam-jdocbook-style</artifactId>
+                  <version>1.1.0.BETA2</version>
+                  <type>jdocbook-style</type>
+               </dependency>
+               <dependency>
+                  <groupId>org.jboss</groupId>
+                  <artifactId>jbossorg-jdocbook-style</artifactId>
+                  <version>1.1.0.Beta1</version>
+                  <type>jdocbook-style</type>
+               </dependency>
+            </dependencies>
+            <configuration>
+               <sourceDirectory>${pom.basedir}</sourceDirectory>
+               <sourceDocumentName>master.xml</sourceDocumentName>
+               <masterTranslation>en-US</masterTranslation>
+               <translations>
+                  
+               </translations>
+               <imageResource>
+                  <directory>${pom.basedir}/en-US</directory>
+                  <includes>
+                     <include>images/*.png</include>
+                  </includes>
+               </imageResource>
+               <formats>
+                  <format>
+                     <formatName>pdf</formatName>
+                     <stylesheetResource>
+                        classpath:/xslt/org/jboss/seam/pdf.xsl
+                     </stylesheetResource>
+                     <finalName>seam_reference.pdf</finalName>
+                  </format>
+                  <format>
+                     <formatName>html</formatName>
+                     <stylesheetResource>
+                        classpath:/xslt/org/jboss/seam/xhtml.xsl
+                     </stylesheetResource>
+                     <finalName>index.html</finalName>
+                  </format>
+                  <format>
+                     <formatName>html_single</formatName>
+                     <stylesheetResource>
+                        classpath:/xslt/org/jboss/seam/xhtml-single.xsl
+                     </stylesheetResource>
+                     <finalName>index.html</finalName>
+                  </format>
+                  <format>
+                     <formatName>eclipse</formatName>
+                     <stylesheetResource>
+                        classpath:/xslt/org/jboss/seam/eclipse.xsl
+                     </stylesheetResource>
+                     <finalName>index.html</finalName>
+                  </format>
+               </formats>
+               <options>
+                  <xincludeSupported>true</xincludeSupported>
+                  <xmlTransformerType>saxon</xmlTransformerType>
+                  <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+                  <!--     could also locate the docbook dependency and inspect its version... -->
+                  <docbookVersion>1.72.0</docbookVersion>
+                  <localeSeparator>-</localeSeparator>
+               </options>
+            </configuration>
+         </plugin>
+      </plugins>
+      <pluginManagement>
+         <plugins>
+            <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-dependency-plugin</artifactId>
+               <version>2.0</version>
+            </plugin>
+            <plugin>
+               <groupId>org.jboss.maven.plugins</groupId>
+               <artifactId>maven-jdocbook-plugin</artifactId>
+               <version>2.1.1</version>
+            </plugin>
+         </plugins>
+      </pluginManagement>
+   </build>
+   
+   <profiles>
+      <profile>
+         <activation>
+            <property>
+               <name>build.translations</name>  
+            </property>
+         </activation>
+         <build>
+            <plugins>
+               <plugin>
+               <groupId>org.jboss.maven.plugins</groupId>
+               <artifactId>maven-jdocbook-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <phase>process-resources</phase>
+                        <goals>
+                           <goal>translate</goal>
+                        </goals>
+                     </execution>
+                  </executions>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
+</project>

Modified: trunk/build.xml
===================================================================
--- trunk/build.xml	2008-05-08 11:45:44 UTC (rev 8139)
+++ trunk/build.xml	2008-05-08 15:59:42 UTC (rev 8140)
@@ -49,7 +49,7 @@
 	<!-- Documentation -->
 	<property name="doc.dir" value="doc" />
 	<property name="doc.api.dir" value="${doc.dir}/api" />
-	<property name="doc.ref.dir" value="${doc.dir}/reference" />
+	<property name="doc.ref.dir" value="${doc.dir}/Seam_Reference_Guide" />
 	<property name="javadoc.link" value="http://java.sun.com/j2se/5.0/docs/api" />
 
 	<!-- Distribution targets -->
@@ -623,17 +623,21 @@
 
 	</target>
 
-	<target name="refdoc" description="Generate and copy reference documentation">
-
-		<copy todir="${doc.ref.dir}/build">
-			<fileset dir="${doc.ref.dir}" />
-		</copy>
-		<replace dir="${doc.ref.dir}/build" token="@version@" value="${complete.version}" />
-		<ant dir="${doc.ref.dir}/build" inheritall="false" target="all.doc" />
+	<target name="refdoc" description="Generate and copy reference documentation" depends="initpoms">
+		<condition property="maven.build.translations" value="-Dbuild.translations" else="">
+			<isset property="build.translations"/>
+		</condition>
+		<echo file="${doc.ref.dir}/en-US/Version_Info.xml">
+			&lt;releaseinfo&gt;${complete.version}&lt;/releaseinfo&gt;
+		</echo>
+		<copy file="${docs.pom}" tofile="${doc.ref.dir}/pom.xml" overwrite="true"/>
+		<maven target="compile" basedir="${doc.ref.dir}">
+			<jvmarg line="-Xms128m -Xmx512m" />
+			<arg line="${maven.build.translations}" />
+		</maven>
 		<copy todir="${dist.ref.dir}">
-			<fileset dir="${doc.ref.dir}/build/build" />
+			<fileset dir="${doc.ref.dir}/target/docbook/publish" />
 		</copy>
-		<delete dir="${doc.ref.dir}/build" />
 	</target>
 
 

Copied: trunk/doc/Seam_Reference_Guide (from rev 8139, branches/Seam_2_0/doc/Seam_Reference_Guide)




More information about the seam-commits mailing list