summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschonbac2008-02-06 14:40:40 (EST)
committerpschonbac2008-02-06 14:40:40 (EST)
commitf3f5bd1e721380c463a07ba297baa1d118c01055 (patch)
tree570255b3b2faffc205b159a6e76b97d54aa3c152
parent57431af685f63abdcd5910fb3c64bb04544c7955 (diff)
downloadorg.eclipse.xpand-f3f5bd1e721380c463a07ba297baa1d118c01055.zip
org.eclipse.xpand-f3f5bd1e721380c463a07ba297baa1d118c01055.tar.gz
org.eclipse.xpand-f3f5bd1e721380c463a07ba297baa1d118c01055.tar.bz2
References to structure directory removed which no longer exists
-rw-r--r--doc/org.eclipse.xpand.doc/build-docbook.properties92
-rw-r--r--doc/org.eclipse.xpand.doc/build-docbook.xml154
2 files changed, 246 insertions, 0 deletions
diff --git a/doc/org.eclipse.xpand.doc/build-docbook.properties b/doc/org.eclipse.xpand.doc/build-docbook.properties
new file mode 100644
index 0000000..4dfa62b
--- /dev/null
+++ b/doc/org.eclipse.xpand.doc/build-docbook.properties
@@ -0,0 +1,92 @@
+############### Adaptable properties ###############
+
+# Product information
+product.name=Xpand
+product.name.files=${product_name}
+product.provider=openarchitectureware.org
+product.version=5.0
+
+# Directories
+tools.basedir=${basedir}/../org.openarchitectureware.documentation
+
+# Style files
+custom-css.file=book.css
+custom.pdf-xsl.file=fopdf.xsl
+custom.html-xsl.file=html.xsl
+custom.eclipse-xsl.file=eclipse.xsl
+
+# Flags
+custom = true
+
+# Document type
+document.type=individual
+
+# DocBook version
+docbook.version = 4.5
+
+
+############### Do not change below ###############
+
+# Directories
+tools.basedir.build = ${tools.basedir}
+tools.dir=${tools.basedir}/lib/tools
+tools.dir.build = ${tools.basedir.build}/lib/tools
+version.dir=${product.version}
+docbook.dir=${tools.dir.build}/docbook
+docbook-src.dir=${basedir}/src
+docbook-lib.dir=${docbook.dir}
+src.dir=${docbook-src.dir}/${version.dir}
+content.dir=${src.dir}/content
+images.dir=${content.dir}/images
+build.dir=${basedir}/build-docbook
+output.dir=${basedir}/output
+html.dir=${output.dir}/html
+pdf.dir=${output.dir}/pdf
+release.dir=${output.dir}//release
+release.build.dir=${build.dir}/release
+style.dir=${tools.basedir}/styles
+css.style.dir=${style.dir}/css
+xsl.style.dir=${style.dir}/xslt
+shared.dir=${tools.basedir.build}/shared
+shared.src.dir=${tools.basedir.build}/src/${version.dir}
+shared.content.dir=${shared.src.dir}/content
+shared.images.dir=${shared.content.dir}/images
+
+# Title of documentation
+doc.title=${product.name} User Guide
+
+# Files
+css.file.path=${css.style.dir}/${custom-css.file}
+css.file=${custom-css.file}
+
+# PDF
+pdf.output.dir=${pdf.dir}/${version.dir}
+pdf.stylesheet.path=${xsl.style.dir}/${custom.pdf-xsl.file}
+pdf.stylesheet=${custom.pdf-xsl.file}
+
+# HTML
+html.output.dir=${html.dir}/${version.dir}
+html.stylesheet.path=${xsl.style.dir}/${custom.html-xsl.file}
+html.stylesheet=${custom.html-xsl.file}
+
+# Eclipse help
+eclipse.plugin.id=org.openarchitectureware.help.userguide
+eclipse.output.dir=../${eclipse.plugin.id}
+eclipse.plugin.name=$[product.name} User Guide
+eclipse.plugin.provider=$[product.provider}
+eclipse.stylesheet.path=${xsl.style.dir}/${custom.eclipse-xsl.file}
+eclipse.stylesheet=${custom.eclipse-xsl.file}
+
+# docbook
+docbook-xsl.dir=${docbook.dir}/xsl
+docbook-xsl.eclipse-xsl.file=${docbook-xsl.dir}/eclipse/eclipse.xsl
+docbook-xsl.html-xsl.file=${docbook-xsl.dir}/html/chunk.xsl
+docbook-xsl.pdf-xsl.file=${docbook-xsl.dir}/fo/fo.xsl
+
+# saxon
+saxon.dir = ${tools.dir}/saxon
+saxon.lib.path = ${saxon.dir}/saxon.jar
+
+# xerces
+xerces.dir = ${tools.dir}/fop
+xerces.lib.path = ${xerces.dir}/xercesImpl-2.7.1.jar \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/build-docbook.xml b/doc/org.eclipse.xpand.doc/build-docbook.xml
new file mode 100644
index 0000000..2b49cf6
--- /dev/null
+++ b/doc/org.eclipse.xpand.doc/build-docbook.xml
@@ -0,0 +1,154 @@
+<?xml version="1.0"?>
+<project name="Xpand documentation" default="build.all">
+
+ <property file="build-docbook.properties" />
+
+ <path id="fop">
+ <pathelement location="${tools.dir}/fop/fop.jar" />
+ <pathelement location="${tools.dir}/fop/avalon-framework-4.2.0.jar" />
+ <pathelement location="${tools.dir}/fop/batik-all-1.6.jar" />
+ </path>
+
+ <path id="saxon">
+ <pathelement location="${xerces.lib.path}" />
+ <pathelement location="${saxon.lib.path}" />
+ </path>
+
+ <tstamp>
+ <format property="date" pattern="yyyy-MM-dd" />
+ <format property="year" pattern="yyyy" />
+ </tstamp>
+
+ <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop" classpathref="fop" />
+
+ <target name="build.all" depends="stage, build.doc.html, build.doc.eclipsehelp, build.doc.pdf, unstage" />
+
+ <target name="build.doc.html" depends="stage.html">
+ <delete dir="${html.output.dir}/contents" failonerror="false" />
+ <copy todir="${html.output.dir}/contents/images">
+ <fileset dir="${images.dir}">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+ <copy file="${css.file.path}" todir="${html.output.dir}" />
+ <java fork="true" dir="${html.output.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
+ <classpath refid="saxon" />
+ <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
+ <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
+ <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
+ <arg value="${build.dir}/index.xml" />
+ <arg value="${build.dir}/${html.stylesheet}" />
+ <arg value='profile.condition="${document.type}"'>
+ </arg>
+ </java>
+ </target>
+
+ <target name="build.doc.eclipsehelp" depends="stage.eclipse">
+ <delete dir="${eclipse.output.dir}/contents" failonerror="false" />
+ <copy todir="${eclipse.output.dir}/contents/images">
+ <fileset dir="${images.dir}">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+ <copy file="${css.file.path}" todir="${eclipse.output.dir}" />
+ <java fork="true" dir="${eclipse.output.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
+ <classpath refid="saxon" />
+ <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
+ <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
+ <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
+ <arg value="${build.dir}/index.xml" />
+ <arg value="${build.dir}/${eclipse.stylesheet}" />
+ <arg value="eclipse.plugin.id=${eclipse.plugin.id}" />
+ <arg value="eclipse.plugin.name=${eclipse.plugin.name}" />
+ <arg value="eclipse.plugin.provider=${eclipse.plugin.provider}" />
+ <arg value='profile.condition="${document.type}"'>
+ </arg>
+ </java>
+ </target>
+
+ <target name="build.doc.pdf" depends="stage.pdf">
+ <java fork="true" dir="${build.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
+ <classpath refid="saxon" />
+ <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
+ <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
+ <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
+ <arg value="-o" />
+ <arg value="${build.dir}/${product.name.files}_documentation.fo" />
+ <arg value="${build.dir}/index.xml" />
+ <arg value="${pdf.stylesheet}" />
+ <arg value="draft.mode=no" />
+ <arg value="paper.type=A4" />
+ <arg value="l10n.gentext.language=en" />
+ <arg value='profile.condition="${document.type}"'>
+ </arg>
+ </java>
+
+ <mkdir dir="${pdf.output.dir}" />
+
+ <fop format="application/pdf" outdir="${pdf.output.dir}" basedir="${build.dir}" messagelevel="debug">
+ <fileset dir="${build.dir}">
+ <include name="**/*.fo" />
+ </fileset>
+ </fop>
+ </target>
+
+ <target name="stage" depends="unstage">
+ <copy todir="${build.dir}">
+ <fileset dir="${src.dir}">
+ <include name="**/*.xml" />
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}/content">
+ <fileset dir="${content.dir}">
+ <include name="**/*.xml" />
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}/content/images">
+ <fileset dir="${images.dir}">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+ <copy file="${tools.basedir}/shared/bookinfo.xml" todir="${build.dir}" />
+ <replace file="${build.dir}/index.xml" token="@DOCBOOKVERSION@"
+ value="${docbook.version}" casesensitive="true"/>
+ <replace file="${build.dir}/index.xml" token="@TITLE@"
+ value="${doc.title}" casesensitive="true"/>
+ <replace file="${build.dir}/bookinfo.xml" token="@VERSION@"
+ value="${product.version}" casesensitive="true"/>
+ <replace file="${build.dir}/bookinfo.xml" token="@DATE@"
+ value="${date}" casesensitive="true"/>
+ </target>
+
+ <target name="stage.pdf" depends="stage">
+ <copy file="${pdf.stylesheet.path}" todir="${build.dir}" />
+ <replace file="${build.dir}/${pdf.stylesheet}" token="@SHAREDIMAGESDIR@"
+ value="${shared.images.dir}" casesensitive="true"/>
+ <replace file="${build.dir}/${pdf.stylesheet}" token="@DOCBOOKDIR@"
+ value="${docbook.dir}" casesensitive="true" />
+ <replace file="${build.dir}/${pdf.stylesheet}" token="@TOOLSDIR@"
+ value="${tools.dir}" casesensitive="true"/>
+ <replace file="${build.dir}/${pdf.stylesheet}" token="@YEAR@"
+ value="${year}" casesensitive="true"/>
+ </target>
+
+ <target name="stage.html" depends="stage">
+ <copy file="${html.stylesheet.path}" todir="${build.dir}" />
+ <replace file="${build.dir}/${html.stylesheet}" token="@DOCBOOKDIR@"
+ value="${docbook.dir}" casesensitive="true" />
+ </target>
+
+ <target name="stage.eclipse" depends="stage">
+ <copy file="${eclipse.stylesheet.path}" todir="${build.dir}" />
+ <replace file="${build.dir}/${eclipse.stylesheet}" token="@DOCBOOKDIR@"
+ value="${docbook.dir}" casesensitive="true" />
+ </target>
+
+ <target name="unstage">
+ <delete dir="${build.dir}" />
+ </target>
+
+ <target name="clean" depends="unstage">
+ <delete dir="${output.dir}" />
+ </target>
+
+</project>