Author: alexsmirnov
Date: 2007-06-05 18:03:41 -0400 (Tue, 05 Jun 2007)
New Revision: 240
Added:
trunk/docs/pom.xml
trunk/docs/userguide/en-US/
trunk/docs/userguide/en-US/pom.xml
trunk/docs/xslt/pom.xml
trunk/docs/xslt/src/
trunk/docs/xslt/src/main/
trunk/docs/xslt/src/main/resources/
trunk/docs/xslt/src/main/resources/en/
trunk/docs/xslt/support/support.properties
trunk/docs/xslt/support/support.xml
Removed:
trunk/docs/userguide/en/
trunk/docs/xslt/styles/en/
trunk/docs/xslt/support.properties
trunk/docs/xslt/support.xml
Modified:
trunk/docs/userguide/pom.xml
Log:
reorganize projects for a Maven documentation build
Added: trunk/docs/pom.xml
===================================================================
--- trunk/docs/pom.xml (rev 0)
+++ trunk/docs/pom.xml 2007-06-05 22:03:41 UTC (rev 240)
@@ -0,0 +1,13 @@
+<?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.ajax4jsf</groupId>
+ <artifactId>docs</artifactId>
+ <version>1.1.2-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>xslt</module>
+ <module>userguide</module>
+ </modules>
+</project>
+
Copied: trunk/docs/userguide/en-US (from rev 238, trunk/docs/userguide/en)
Added: trunk/docs/userguide/en-US/pom.xml
===================================================================
--- trunk/docs/userguide/en-US/pom.xml (rev 0)
+++ trunk/docs/userguide/en-US/pom.xml 2007-06-05 22:03:41 UTC (rev 240)
@@ -0,0 +1,20 @@
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.ajax4jsf.docs</groupId>
+ <artifactId>userguide</artifactId>
+ <version>1.1.2-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>userguide-${translation}</artifactId>
+ <packaging>pom</packaging>
+ <name>Ajax4jsf Manual (${translation})</name>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+</project>
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2007-06-05 21:49:31 UTC (rev 239)
+++ trunk/docs/userguide/pom.xml 2007-06-05 22:03:41 UTC (rev 240)
@@ -3,50 +3,49 @@
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">
<parent>
- <artifactId>master</artifactId>
+ <artifactId>docs</artifactId>
<groupId>org.ajax4jsf</groupId>
<version>1.1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.ajax4jsf</groupId>
- <artifactId>docs</artifactId>
- <version>1.1.2-SNAPSHOT</version>
- <description>Project documentation</description>
+ <groupId>org.ajax4jsf.docs</groupId>
+ <artifactId>userguide</artifactId>
+ <version>1.1.2-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <description>Ajax4jsf user guide</description>
<build>
- <resources>
- <resource>
- <directory>resources</directory>
- </resource>
- </resources>
<plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>xml-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>transform</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <transformationSets>
- <transformationSet>
- <dir>${project.build.directory}/tld</dir>
- <includes>*.tld</includes>
- <outputDir>build/generated/en/</outputDir>
- <stylesheet>userguide/f.xsl</stylesheet>
- <fileMappers>
- <fileMapper
implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
- <targetExtension>_table.xml</targetExtension>
- </fileMapper>
- </fileMappers>
- </transformationSet>
- </transformationSets>
- </configuration>
- </plugin>
-
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xml-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>transform</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <transformationSets>
+ <transformationSet>
+ <dir>${project.build.directory}/tld</dir>
+ <includes>*.tld</includes>
+ <outputDir>build/generated/en/</outputDir>
+ <stylesheet>userguide/f.xsl</stylesheet>
+ <fileMappers>
+ <fileMapper
+ implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
+ <targetExtension>
+ _table.xml
+ </targetExtension>
+ </fileMapper>
+ </fileMappers>
+ </transformationSet>
+ </transformationSets>
+ </configuration>
+ </plugin>
+
+ <plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jboss-docbook-plugin</artifactId>
<version>1.0</version>
@@ -121,6 +120,9 @@
<masterTranslation>en-US</masterTranslation>
</properties>
+ <modules>
+ <module>en-US</module>
+ </modules>
</project>
Added: trunk/docs/xslt/pom.xml
===================================================================
--- trunk/docs/xslt/pom.xml (rev 0)
+++ trunk/docs/xslt/pom.xml 2007-06-05 22:03:41 UTC (rev 240)
@@ -0,0 +1,9 @@
+<?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.ajax4jsf.docs</groupId>
+ <artifactId>xslt</artifactId>
+ <version>1.1.2-SNAPSHOT</version>
+ <description>Docbook documentation stylesheets</description>
+</project>
+
Copied: trunk/docs/xslt/src/main/resources/en (from rev 239, trunk/docs/xslt/styles/en)
Copied: trunk/docs/xslt/support/support.properties (from rev 239,
trunk/docs/xslt/support.properties)
===================================================================
--- trunk/docs/xslt/support/support.properties (rev 0)
+++ trunk/docs/xslt/support/support.properties 2007-06-05 22:03:41 UTC (rev 240)
@@ -0,0 +1,2 @@
+#Wed Apr 11 15:30:36 EEST 2007
+ajax4jsf.location=E:\\poligon\\SVNLocation\\ajax4jsf\\trunk
Copied: trunk/docs/xslt/support/support.xml (from rev 239, trunk/docs/xslt/support.xml)
===================================================================
--- trunk/docs/xslt/support/support.xml (rev 0)
+++ trunk/docs/xslt/support/support.xml 2007-06-05 22:03:41 UTC (rev 240)
@@ -0,0 +1,259 @@
+<project name="DocSupport" default="all.doc"
basedir=".">
+
+ <dirname property="support.startdir"
file="${ant.file.DocSupport}"/>
+
+ <property name="support.basedir"
value="${support.startdir}"/>
+
+ <property file="${support.startdir}/support.properties" />
+
+ <!-- Set build directories for all formats. -->
+ <property name="build.dir"
value="${basedir}/build"/>
+
+ <!-- Support files for build process. -->
+ <property name="support.dir"
value="${support.basedir}/support"/>
+ <property name="styles.dir"
value="${support.basedir}/styles"/>
+
+ <!-- Set DocBook stylesheets. -->
+ <property name="db.style.fopdf" value="fopdf.xsl"/>
+ <property name="db.style.html"
value="html_chunk.xsl"/>
+ <property name="db.style.htmlsingle" value="html.xsl"/>
+
+ <property name="maxmem" value="1024m" />
+
+ <xmlcatalog id="docbook.catalog">
+ <catalogpath path="${support.basedir}/docbook-dtd/catalog.xml"
/>
+ </xmlcatalog>
+
+
+ <!-- Classpath for the build tools. -->
+ <path id="lib.classpath">
+ <fileset dir="${support.dir}/lib">
+ <include name="**/saxon1.jar" />
+ </fileset>
+ <dirset dir="." />
+ <fileset dir="${support.dir}/lib">
+ <include name="**/*.jar"/>
+ <exclude name="**/saxon1.jar"/>
+ </fileset>
+ </path>
+
+ <!-- ################################################################## -->
+
+ <target name="all.doc" depends="clean">
+ <antcall target="lang.all"><param name="lang"
value="en"/></antcall>
+ </target>
+
+ <!-- ################################################################## -->
+
+ <target name="lang.all.bypass.check"
unless="lang.all.bypass.disabled">
+ <uptodate property="lang.all.bypass.on"
targetfile="${build.dir}/${lang}/pdf/${pdf.name}">
+ <srcfiles dir="${support.basedir}" includes="**"/>
+ <srcfiles dir="${basedir}/${lang}" includes="**"/>
+ <srcfiles dir="${basedir}" includes="build.xml"/>
+ </uptodate>
+ </target>
+
+ <target name="lang.all.run" depends="lang.all.bypass.check,
lang.all.bypass.message" unless="lang.all.bypass.on">
+ <antcall target="clean"/>
+ <antcall target="lang.all"/>
+ </target>
+
+ <target name="lang.all.bypass.message"
if="lang.all.bypass.on">
+ <echo>Already uptodate: ${build.dir}/${lang}/pdf/${pdf.name}</echo>
+ <echo>add -Dlang.all.bypass.disabled=true to force a rebuild</echo>
+ </target>
+
+ <!-- ################################################################## -->
+
+ <target name="lang.dochtml.bypass.check"
unless="lang.dochtml.bypass.disabled">
+ <uptodate property="lang.dochtml.bypass.on"
targetfile="${build.dir}/${lang}/html/index.html">
+ <srcfiles dir="${support.basedir}" includes="**"/>
+ <srcfiles dir="${basedir}/${lang}" includes="**"/>
+ <srcfiles dir="${basedir}" includes="build.xml"/>
+ </uptodate>
+ </target>
+
+ <target name="lang.dochtml.run" depends="lang.dochtml.bypass.check,
lang.dochtml.bypass.message" unless="lang.dochtml.bypass.on">
+ <antcall target="clean.dochtml"/>
+ <antcall target="lang.dochtml"/>
+ <antcall target="lang.dochtmlsingle"/>
+ </target>
+
+ <target name="lang.dochtml.bypass.message"
if="lang.dochtml.bypass.on">
+ <echo>Already uptodate: ${build.dir}/${lang}/html/index.html</echo>
+ <echo>add -Dlang.dochtml.bypass.disabled=true to force a
rebuild</echo>
+ </target>
+
+ <!-- ################################################################## -->
+
+ <target name="clean">
+ <!-- Delete build directory. -->
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <target name="clean.dochtml">
+ <!-- Delete build directory for single html -->
+ <delete dir="${build.dir}/${lang}/html"/>
+ <delete dir="${build.dir}/${lang}/html_single"/>
+ </target>
+
+ <target name="collect-tld">
+ <mkdir dir="../build/generated/${lang}" />
+ <copy flatten="yes" todir="../build/generated/${lang}">
+ <fileset dir="${ajax4jsf.location}">
+ <include name="framework/target/classes/META-INF/*.tld"/>
+ </fileset>
+
+ </copy>
+ <touch>
+ <fileset dir="../build/generated/${lang}">
+ <include name="*.tld" />
+ </fileset>
+ </touch>
+ </target>
+
+ <!-- - - - - - - - - - - - - - - - - -
+ target: tld2docbook
+ - - - - - - - - - - - - - - - - - -->
+ <target name="tld2docbook" depends="collect-tld">
+ <!--Target must be started for every component in library till
+ the one tld file for all the components isn't present-->
+ <xslt classpathref="lib.classpath" style="f.xsl"
basedir="../build/generated/${lang}"
destdir="../build/generated/${lang}">
+ <include name="*.tld"/>
+
+ <mapper type="glob" from="*.tld" to="*_table.xml"
/>
+
+ <param name="lang" expression="${lang}"/>
+ </xslt>
+ <!--End of the tld process-->
+ </target>
+
+
+
+ <!-- ################################################################## -->
+
+ <target name="lang.all">
+ <antcall target="lang.docpdf"/>
+ <antcall target="lang.dochtml"/>
+ <antcall target="lang.dochtmlsingle"/>
+ <!--
+ <antcall target="lang.htmlmisc"/>
+ -->
+ </target>
+
+ <target name="lang.docpdf" depends="tld2docbook">
+ <!-- Copy all the images to the output location,
+ will be removed later. -->
+ <copy todir="${build.dir}/${lang}/pdf/images">
+ <fileset dir="${basedir}/${lang}/images">
+ <include name="**/*.png"/>
+ <include name="**/*.svg"/>
+ <include name="**/*.gif"/>
+ <include name="**/*.jpg"/>
+ </fileset>
+ </copy>
+
+ <!-- Create the XSL/FO temporary file. -->
+
+ <java classname="com.icl.saxon.StyleSheet"
+ maxmemory="${maxmem}"
+ fork="true" dir="${basedir}">
+ <classpath refid="lib.classpath"/>
+ <arg value="-o" />
+ <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
+ <arg value="${basedir}/${lang}/master.xml"/>
+ <arg value="${styles.dir}/${lang}/${db.style.fopdf}"/>
+ </java>
+
+
+<!--
+ <xslt out="${build.dir}/${lang}/pdf/docbook_fop.tmp"
+ in="${basedir}/${lang}/master.xml"
+ style="${styles.dir}/${lang}/${db.style.fopdf}">
+ <xmlcatalog refid="docbook.catalog"/>
+ </xslt>
+-->
+ <!-- Create a PDF from the XSL/FO. -->
+ <java classname="org.apache.fop.apps.Fop"
+ maxmemory="${maxmem}"
+ fork="true" dir="${basedir}">
+ <classpath refid="lib.classpath"/>
+ <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
+ <arg value="${build.dir}/${lang}/pdf/${pdf.name}"/>
+ </java>
+
+ <!-- Delete temporary files. -->
+ <delete file="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
+ <delete dir="${build.dir}/${lang}/pdf/images"/>
+ </target>
+
+ <target name="lang.dochtml" depends="tld2docbook">
+ <mkdir dir="${build.dir}/${lang}/html/"/>
+
+ <!-- Copy all the images to the output location -->
+ <copy todir="${build.dir}/${lang}/html/images">
+ <fileset dir="${basedir}/${lang}/images">
+ <include name="**/*.png"/>
+ <include name="**/*.gif"/>
+ <include name="**/*.jpg"/>
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}/${lang}/html/css">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.css"/>
+ </fileset>
+ </copy>
+
+ <java classname="com.icl.saxon.StyleSheet"
+ fork="true" dir="${build.dir}/${lang}/html">
+ <classpath refid="lib.classpath"/>
+ <arg value="${basedir}/${lang}/master.xml"/>
+ <arg value="${styles.dir}/${lang}/${db.style.html}"/>
+ </java>
+ </target>
+
+ <target name="lang.dochtmlsingle" depends="tld2docbook">
+ <mkdir dir="${build.dir}/${lang}/html_single/"/>
+
+ <!-- Copy all the images to the output location -->
+ <copy todir="${build.dir}/${lang}/html_single/images">
+ <fileset dir="${basedir}/${lang}/images">
+ <include name="**/*.png"/>
+ <include name="**/*.gif"/>
+ <include name="**/*.jpg"/>
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}/${lang}/html_single/css">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.css"/>
+ </fileset>
+ </copy>
+
+ <java classname="com.icl.saxon.StyleSheet"
+ fork="true" dir="${basedir}">
+ <classpath refid="lib.classpath"/>
+ <arg value="-o"/>
+ <arg value="${build.dir}/${lang}/html_single/index.html"/>
+ <arg value="${basedir}/${lang}/master.xml"/>
+ <arg value="${styles.dir}/${lang}/${db.style.htmlsingle}"/>
+ </java>
+ </target>
+
+ <!-- I do not really like to have external dependency for HTML pages
+ So, I am not using this task ... -->
+ <target name="lang.htmlmisc" depends="tld2docbook">
+ <!-- Copy images and CSS for HTML documentation, language specific. -->
+ <copy todir="${build.dir}/${lang}/shared/images">
+ <fileset dir="${basedir}/${lang}/images">
+ <include name="**/*.png"/>
+ <include name="**/*.gif"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${build.dir}/${lang}/shared/css">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.css"/>
+ </fileset>
+ </copy>
+ </target>
+</project>
Deleted: trunk/docs/xslt/support.properties
===================================================================
--- trunk/docs/xslt/support.properties 2007-06-05 21:49:31 UTC (rev 239)
+++ trunk/docs/xslt/support.properties 2007-06-05 22:03:41 UTC (rev 240)
@@ -1,2 +0,0 @@
-#Wed Apr 11 15:30:36 EEST 2007
-ajax4jsf.location=E:\\poligon\\SVNLocation\\ajax4jsf\\trunk
Deleted: trunk/docs/xslt/support.xml
===================================================================
--- trunk/docs/xslt/support.xml 2007-06-05 21:49:31 UTC (rev 239)
+++ trunk/docs/xslt/support.xml 2007-06-05 22:03:41 UTC (rev 240)
@@ -1,259 +0,0 @@
-<project name="DocSupport" default="all.doc"
basedir=".">
-
- <dirname property="support.startdir"
file="${ant.file.DocSupport}"/>
-
- <property name="support.basedir"
value="${support.startdir}"/>
-
- <property file="${support.startdir}/support.properties" />
-
- <!-- Set build directories for all formats. -->
- <property name="build.dir"
value="${basedir}/build"/>
-
- <!-- Support files for build process. -->
- <property name="support.dir"
value="${support.basedir}/support"/>
- <property name="styles.dir"
value="${support.basedir}/styles"/>
-
- <!-- Set DocBook stylesheets. -->
- <property name="db.style.fopdf" value="fopdf.xsl"/>
- <property name="db.style.html"
value="html_chunk.xsl"/>
- <property name="db.style.htmlsingle" value="html.xsl"/>
-
- <property name="maxmem" value="1024m" />
-
- <xmlcatalog id="docbook.catalog">
- <catalogpath path="${support.basedir}/docbook-dtd/catalog.xml"
/>
- </xmlcatalog>
-
-
- <!-- Classpath for the build tools. -->
- <path id="lib.classpath">
- <fileset dir="${support.dir}/lib">
- <include name="**/saxon1.jar" />
- </fileset>
- <dirset dir="." />
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- <exclude name="**/saxon1.jar"/>
- </fileset>
- </path>
-
- <!-- ################################################################## -->
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang"
value="en"/></antcall>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all.bypass.check"
unless="lang.all.bypass.disabled">
- <uptodate property="lang.all.bypass.on"
targetfile="${build.dir}/${lang}/pdf/${pdf.name}">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.all.run" depends="lang.all.bypass.check,
lang.all.bypass.message" unless="lang.all.bypass.on">
- <antcall target="clean"/>
- <antcall target="lang.all"/>
- </target>
-
- <target name="lang.all.bypass.message"
if="lang.all.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/pdf/${pdf.name}</echo>
- <echo>add -Dlang.all.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.dochtml.bypass.check"
unless="lang.dochtml.bypass.disabled">
- <uptodate property="lang.dochtml.bypass.on"
targetfile="${build.dir}/${lang}/html/index.html">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.dochtml.run" depends="lang.dochtml.bypass.check,
lang.dochtml.bypass.message" unless="lang.dochtml.bypass.on">
- <antcall target="clean.dochtml"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- </target>
-
- <target name="lang.dochtml.bypass.message"
if="lang.dochtml.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/html/index.html</echo>
- <echo>add -Dlang.dochtml.bypass.disabled=true to force a
rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="clean">
- <!-- Delete build directory. -->
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="clean.dochtml">
- <!-- Delete build directory for single html -->
- <delete dir="${build.dir}/${lang}/html"/>
- <delete dir="${build.dir}/${lang}/html_single"/>
- </target>
-
- <target name="collect-tld">
- <mkdir dir="../build/generated/${lang}" />
- <copy flatten="yes" todir="../build/generated/${lang}">
- <fileset dir="${ajax4jsf.location}">
- <include name="framework/target/classes/META-INF/*.tld"/>
- </fileset>
-
- </copy>
- <touch>
- <fileset dir="../build/generated/${lang}">
- <include name="*.tld" />
- </fileset>
- </touch>
- </target>
-
- <!-- - - - - - - - - - - - - - - - - -
- target: tld2docbook
- - - - - - - - - - - - - - - - - - -->
- <target name="tld2docbook" depends="collect-tld">
- <!--Target must be started for every component in library till
- the one tld file for all the components isn't present-->
- <xslt classpathref="lib.classpath" style="f.xsl"
basedir="../build/generated/${lang}"
destdir="../build/generated/${lang}">
- <include name="*.tld"/>
-
- <mapper type="glob" from="*.tld" to="*_table.xml"
/>
-
- <param name="lang" expression="${lang}"/>
- </xslt>
- <!--End of the tld process-->
- </target>
-
-
-
- <!-- ################################################################## -->
-
- <target name="lang.all">
- <antcall target="lang.docpdf"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- <!--
- <antcall target="lang.htmlmisc"/>
- -->
- </target>
-
- <target name="lang.docpdf" depends="tld2docbook">
- <!-- Copy all the images to the output location,
- will be removed later. -->
- <copy todir="${build.dir}/${lang}/pdf/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.svg"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
-
- <!-- Create the XSL/FO temporary file. -->
-
- <java classname="com.icl.saxon.StyleSheet"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o" />
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.fopdf}"/>
- </java>
-
-
-<!--
- <xslt out="${build.dir}/${lang}/pdf/docbook_fop.tmp"
- in="${basedir}/${lang}/master.xml"
- style="${styles.dir}/${lang}/${db.style.fopdf}">
- <xmlcatalog refid="docbook.catalog"/>
- </xslt>
--->
- <!-- Create a PDF from the XSL/FO. -->
- <java classname="org.apache.fop.apps.Fop"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${build.dir}/${lang}/pdf/${pdf.name}"/>
- </java>
-
- <!-- Delete temporary files. -->
- <delete file="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <delete dir="${build.dir}/${lang}/pdf/images"/>
- </target>
-
- <target name="lang.dochtml" depends="tld2docbook">
- <mkdir dir="${build.dir}/${lang}/html/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
-
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${build.dir}/${lang}/html">
- <classpath refid="lib.classpath"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.html}"/>
- </java>
- </target>
-
- <target name="lang.dochtmlsingle" depends="tld2docbook">
- <mkdir dir="${build.dir}/${lang}/html_single/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html_single/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html_single/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
-
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o"/>
- <arg value="${build.dir}/${lang}/html_single/index.html"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.htmlsingle}"/>
- </java>
- </target>
-
- <!-- I do not really like to have external dependency for HTML pages
- So, I am not using this task ... -->
- <target name="lang.htmlmisc" depends="tld2docbook">
- <!-- Copy images and CSS for HTML documentation, language specific. -->
- <copy todir="${build.dir}/${lang}/shared/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/shared/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- </target>
-</project>