]> source.dussan.org Git - vaadin-framework.git/commitdiff
Scripts for building manual to www.itmill.com
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 12 Feb 2007 10:50:30 +0000 (10:50 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 12 Feb 2007 10:50:30 +0000 (10:50 +0000)
svn changeset:689/svn branch:toolkit

build/build-www.itmill.com.xml [new file with mode: 0644]
build/html-style.properties

diff --git a/build/build-www.itmill.com.xml b/build/build-www.itmill.com.xml
new file mode 100644 (file)
index 0000000..cd59fa8
--- /dev/null
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+
+<project name="www.itmill.com" basedir="../" default="site">
+
+       <target name="site" depends="clean-all, manual-html"/>
+       
+       <target name="init">
+
+               <!-- Create result dir unless already exists -->
+               <mkdir dir="build/result" />
+
+               <property file="build/VERSION" />
+               <property name="product-file" value="itmill-toolkit" />
+               <property name="product-name" value="IT Mill Toolkit" />
+               <property name="toolkit-package" value="com/itmill/toolkit" />
+
+               <property file="build/html-style.properties" />
+
+               <!-- Destination files -->
+               <property name="package-file-name" value="${product-file}-${version}.zip" />
+               <property name="lib-bin-jar-name" value="${product-file}-${version}.jar" />
+               <property name="demo-lib-jar-name" value="${product-file}-demo-${version}.jar" />
+               <property name="lib-src-jar-name" value="${product-file}-src-${version}.jar" />
+               <property name="themes-jar-name" value="${product-file}-themes-${version}.jar" />
+               <property name="demo-war-name" value="${product-file}-demo-${version}.war" />
+
+               <echo message="Prepared to build www.itmill.com html" />
+
+       </target>
+
+       <target name="manual-html" depends="init">
+               <mkdir dir="build/result/www.itmill.com/manual"/>
+               <delete file="build/docbook/conf/temp.xsl" />
+               <copy file="build/docbook/www.itmill.com/custom-www.itmill.com-docbook.xsl" 
+                       tofile="build/docbook/conf/temp.xsl">
+
+                       <filterchain>
+                               <replacetokens>
+                                       <token key="BODYHEADER" value="${www.manual.body.start1}${www.manual.docbook.head.title}${www.manual.body.start2}" />
+                                       <token key="BODYFOOTER" value="${www.manual.body.end}" />
+                               </replacetokens>
+                       </filterchain>
+               </copy>
+               <path id="docbook-xsl.classpath">
+                       <pathelement path="build/lib/fserializer.jar" />
+                       <pathelement path="build/lib/xalan.jar" />
+                       <pathelement path="build/lib/xercesImpl.jar" />
+                       <pathelement path="build/lib/xml-apis.jar" />
+               </path>
+               <java classname="org.apache.xalan.xslt.Process" failonerror="yes" fork="yes" maxmemory="1300m">
+                       <arg value="-in" />
+                       <arg value="doc/manual/book.xml" />
+                       <arg value="-xsl" />
+                       <arg value="build/docbook/conf/temp.xsl" />
+                       <arg value="-out" />
+                       <arg value="build/result/www.itmill.com/manual/index.html" />
+                       <arg value="-param" />
+                       <arg value="use.extensions" />
+                       <arg value="1" />
+                       <classpath refid="docbook-xsl.classpath" />
+               </java>
+               <delete file="build/docbook/conf/temp.xsl" />
+               <copy todir="build/result/www.itmill.com/manual/img">
+                       <fileset dir="doc/manual/img">
+                               <exclude name="**/.svn" />
+                       </fileset>
+               </copy>
+       </target>
+
+       <!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - -->
+       <target name="clean-all" depends="">
+               <delete includeemptydirs="true" defaultexcludes="false">
+                       <fileset dir="build/result" includes="**/*" />
+               </delete>
+               <delete file="build/docbook/conf/temp.xsl" />
+       </target>
+
+</project>
index b48c1aa8147f48756e2515d806d8cba9b1484e9a..6ceb58ecbabecd7c4ac408ceb8f8174da22af457 100644 (file)
@@ -8,4 +8,8 @@ html.head.tag=<head>
 html.head.endtag=</head>
 html.head.style=<link rel="stylesheet" type="text/css" href="styles/demos.css" />
 javadoc.doctitle=<h1>IT Mill Toolkit</h1>
-javadoc.bottom=<i>Copyright &#169; 2000-2006 IT Mill Ltd. All Rights Reserved.</i>
\ No newline at end of file
+javadoc.bottom=<i>Copyright &#169; 2000-2006 IT Mill Ltd. All Rights Reserved.</i>
+www.manual.body.start1=<div id="container"><div id="header"><h1>
+www.manual.body.start2=</h1></div><div id="itmilllogo"></div>
+www.manual.body.end=<div id="footer"><span>Version: ${version}</span>&#x0A9; Oy IT Mill Ltd. 2000-2007</div></div>
+www.manual.docbook.head.title=<xsl:apply-templates select="." mode="object.title.markup.textonly"/>
\ No newline at end of file