blob: 26f2f436a9e65c07c2732cb0e85ba099d0161429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<?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>
<!-- rename to JSP -->
<move todir="build/result/www.itmill.com/manual">
<fileset dir="build/result/www.itmill.com/manual">
<include name="*.html" />
</fileset>
<mapper type="glob" from="*.html" to="*.jsp" />
</move>
<!-- make a zip file -->
<zip destfile="build/result/www.itmill.com//itmill-toolkit-5-manual.zip" basedir="build/result/www.itmill.com/manual" />
</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>
|