Subversion Repositories XServices

Rev

Rev 157 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 157 Rev 173
Line 1... Line 1...
1
<?xml version="1.0"?>
1
<?xml version="1.0"?>
2
<project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
2
<project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
Line -... Line 3...
-
 
3
 
-
 
4
	<!-- C:\JAVA-DEV\apache-fop-1.1 -->
-
 
5
 
-
 
6
	<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
-
 
7
		<classpath>
-
 
8
			<fileset dir="C:\\JAVA-DEV\\apache-fop-1.1">
-
 
9
				<include name="build/*.jar" />
-
 
10
				<include name="lib/*.jar" />
-
 
11
			</fileset>
-
 
12
		</classpath>
-
 
13
	</taskdef>
-
 
14
 
-
 
15
	<!-- External Syntax Higlighter for docbook xsl -->
-
 
16
	<path id="xslthl.path">
-
 
17
		<pathelement location="C:\\JAVA-DEV\\xslthl-2.1.0\\xslthl-2.1.0.jar" />
-
 
18
	</path>
-
 
19
 
3
 
20
 
4
	<property name="current-loc" location="." />
21
	<property name="current-loc" location="." />
5
	<property name="workspace" location=".." />
22
	<property name="workspace" location=".." />
6
	<property name="htmldir" value="${current-loc}/doc/html" />
23
	<property name="htmldir" value="${current-loc}/doc/html" />
-
 
24
	<property name="docbookdir" value="D:/DATA/JAVA-DEV/docbook-xsl-1.78.1/" />
-
 
25
 
-
 
26
	<property name="fo.stylesheet" value="${docbookdir}/fo/docbook.xsl" />
-
 
27
	<property name="fo.stylesheet.hl" value="${docbookdir}/fo/docbook.xsl" />
-
 
28
	<property name="html.stylesheet.hl" value="${docbookdir}/html/docbook-with-highlighting.xsl" />
-
 
29
	<property name="html.chunked.stylesheet.hl" value="${docbookdir}/html/docbook-chunked-with-highlighting.xsl" />
-
 
30
	<property name="eclipse.stylesheet" value="${docbookdir}/eclipse/eclipse.xsl" />
-
 
31
	<property name="html.stylesheet" value="${docbookdir}/html/docbook.xsl" />
-
 
32
	<property name="javahelp.stylesheet" value="${docbookdir}/javahelp/javahelp.xsl" />
-
 
33
	<property name="xhtml5.stylesheet" value="${docbookdir}/xhtml5/docbook.xsl" />
7
	<property name="docbookdir" value="C:\JAVA-DEV\docbook-xsl-ns-1.76.1\html\" />
34
 
8
	<property name="docbooksource" value="${current-loc}/doc" />
35
	<property name="docbooksource" value="${current-loc}/doc" />
-
 
36
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
-
 
37
	<property name="web.dir" value="${current-loc}/web" />
-
 
38
	<property name="build.dir" value="${current-loc}/bin" />
-
 
39
	<property name="delivery.dir" value="c:\\TEMP\\_DELIVERY_AREA" />
Line 9... Line 40...
9
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
40
	<property name="name" value="XServices" />
10
 
41
 
Line 25... Line 56...
25
		<delete dir="${htmldir}" />
56
		<delete dir="${htmldir}" />
26
		<mkdir dir="${htmldir}" />
57
		<mkdir dir="${htmldir}" />
27
	</target>
58
	</target>
Line 28... Line 59...
28
 
59
 
29
	<target name="create-doc" depends="clean-doc, merge">
-
 
30
 
60
	<target name="create-doc" depends="clean-doc, merge">
31
		<xslt force="true" style="${docbookdir}/../toHTML.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
61
		<xslt force="true" style="${html.stylesheet.hl}" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
32
			<factory name="${xalan}" />
62
			<factory name="${xalan}" />
-
 
63
			<classpath refid="xslthl.path" />
33
			<param name="base.dir" expression="${htmldir}/" />
64
			<param name="highlight.xslthl.config" expression="file:///C:/JAVA-DEV/docbook-xsl-1.78.1/highlighting/xslthl-config.xml" />
34
			<param name="use.id.as.filename" expression="1" />
65
			<param name="highlight.source" expression="1" />
35
			<param name="html.stylesheet" expression="style.css" />
66
			<param name="html.stylesheet" expression="style.css" />
36
		</xslt>
67
		</xslt>
37
	<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
68
		<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
Line -... Line 69...
-
 
69
	</target>
-
 
70
 
38
	</target>
71
	<!--
-
 
72
	    - target: chunks-html
39
 
73
	    - description: Iterates through a directory and transforms
-
 
74
	    - .xml files into seperate .html files using the DocBook XSL.
40
	<target name="create-webdoc" depends="clean-doc, merge">
75
	  -->
41
 
76
	<target name="build-chunks" depends="clean-doc, merge" description="chunk HTML from DocBook XML">
-
 
77
		<xslt style="${html.chunked.stylesheet.hl}" extension=".html" basedir="${docbooksource}" destdir="${htmldir}">
-
 
78
			<factory name="${xalan}" />
42
		<xslt force="true" style="${docbookdir}/../fo/docbook.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/xservices.fo">
79
			<classpath refid="xslthl.path" />
43
			<factory name="${xalan}" />
80
			<include name="**/*.dbk" />
-
 
81
			<param name="base.dir" expression="${htmldir}/" />
-
 
82
			<param name="use.id.as.filename" expression="1" />
-
 
83
			<param name="html.stylesheet" expression="styles.css" />
-
 
84
			<param name="section.autolabel" expression="1" />
-
 
85
			<param name="html.cleanup" expression="1" />
-
 
86
			<param name="chunk.first.selection" expression="1" />
-
 
87
			<param name="navig.showtitles" expression="1" />
-
 
88
			<param name="highlight.xslthl.config" expression="file:///C:/JAVA-DEV/docbook-xsl-1.78.1/highlighting/xslthl-config.xml" />
-
 
89
			<param name="highlight.source" expression="1" />
-
 
90
		</xslt>
-
 
91
		<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
-
 
92
	</target>
-
 
93
 
-
 
94
 
-
 
95
	<target name="build-pdf" depends="merge" description="PDF from DocBook XML">
-
 
96
		<!-- Convert DocBook Files into FO -->
-
 
97
		<xslt style="${fo.stylesheet.hl}" extension=".fo" basedir="${docbooksource}" destdir="${htmldir}">
44
			<param name="base.dir" expression="${htmldir}/" />
98
			<include name="BruteXServices_User_Guide.dbk" />
-
 
99
			<classpath refid="xslthl.path" />
-
 
100
			<param name="fop1.extensions" expression="1" />
-
 
101
			<param name="section.autolabel" expression="1" />
-
 
102
			<param name="chapter.autolabel" expression="1" />
-
 
103
			<param name="appendix.autolabel" expression="1" />
-
 
104
			<param name="section.label.includes.component.label" expression="1" />
-
 
105
			<param name="highlight.xslthl.config" expression="file:///C:/JAVA-DEV/docbook-xsl-1.78.1/highlighting/xslthl-config.xml" />
45
			<param name="use.id.as.filename" expression="1" />
106
			<param name="highlight.source" expression="1" />
-
 
107
			<param name="paper.type" expression="A4" />
-
 
108
		</xslt>
-
 
109
 
-
 
110
		<!-- Convert FO Files into pdf -->
-
 
111
		<fop format="application/pdf" outdir="${htmldir}">
-
 
112
			<fileset dir="${htmldir}">
-
 
113
				<include name="**/*.fo" />
46
			<param name="fop.extensions" expression="0" />
114
			</fileset>
Line -... Line 115...
-
 
115
		</fop>
-
 
116
	</target>
-
 
117
 
-
 
118
	<target name="build-html5" depends="clean-doc, merge" description="Generates HTML5 files">
-
 
119
 
-
 
120
		<xslt style="${xhtml5.stylesheet}" extension=".html" basedir="${docbooksource}" destdir="${htmldir}">
-
 
121
			<include name="**/*.dbk" />
-
 
122
			<param name="html.stylesheet" expression="style.css" />
-
 
123
			<param name="docbook.css.source" expression="" />
-
 
124
			<param name="section.autolabel" expression="1" />
-
 
125
			<param name="make.clean.html" expression="1" />
-
 
126
		</xslt>
-
 
127
	</target>
-
 
128
 
-
 
129
	<!--
-
 
130
	    - target: build-javahelp
-
 
131
	    - description: Iterates through a directory and transforms
-
 
132
	    - .xml files into .html files using the DocBook XSL.
-
 
133
	    -->
-
 
134
	<target name="build-javahelp" depends="clean-doc, merge" description="JavaHelp from DocBook XML">
-
 
135
		<xslt style="${javahelp.stylesheet}" extension=".html" basedir="${docbooksource}" destdir="${htmldir}">
-
 
136
			<include name="**/*.dbk" />
-
 
137
			<outputproperty name="indent" value="yes" />
-
 
138
		</xslt>
-
 
139
	</target>
-
 
140
 
-
 
141
 
-
 
142
	<target name="build-eclipse" depends="clean-doc, merge" description="Eclipse help from DocBook XML">
-
 
143
	    <xslt style="${eclipse.stylesheet}" basedir="${docbooksource}" destdir="${htmldir}">
-
 
144
	      <include name="**/*.dbk" />
-
 
145
	    </xslt>
-
 
146
	  </target>
-
 
147
 
-
 
148
 
-
 
149
 
47
		</xslt>
150
 
48
	</target>
151
 
49
 
152
 
50
	<!-- ================================= 
153
	<!-- ================================= 
51
	          target: resolve              
154
	          target: resolve              
52
	         ================================= -->
155
	     ================================= -->
Line -... Line 156...
-
 
156
	<target name="resolve" description="--> retrieve dependencies with ivy">
-
 
157
		<ivy:retrieve />
-
 
158
	</target>
-
 
159
 
-
 
160
	<target name="build-war">
-
 
161
		<ivy:retrieve pattern="c://TEMP/lib/default/[artifact]-[revision].[ext]" conf="default" />
-
 
162
		<war destfile="${delivery.dir}\\${name}.war" webxml="${web.dir}/WEB-INF/web.xml">
-
 
163
			<fileset dir="${web.dir}/">
-
 
164
				<include name="**/*.*" />
-
 
165
			</fileset>
-
 
166
			<lib dir="c://TEMP/lib/default">
-
 
167
				<!--<exclude name="portlet.jar"/>-->
-
 
168
			</lib>
-
 
169
			<classes dir="${build.dir}" />
-
 
170
		</war>
-
 
171
		<tstamp>
-
 
172
			<format property="build.version" pattern="yyyyMMddhhmmss" />
-
 
173
		</tstamp>
-
 
174
		<mkdir dir="${delivery.dir}\\${name}\\${name}-${build.version}" />
-
 
175
		<move file="${delivery.dir}\\${name}.war" toFile="${delivery.dir}\\${name}\\${name}-${build.version}\\${name}.war" />
-
 
176
		<copy todir="${delivery.dir}\\${name}\\${name}-${build.version}\\html">
-
 
177
			<fileset dir="${htmldir}">
-
 
178
			</fileset>
53
	<target name="resolve" description="--> retrieve dependencies with ivy">
179
		</copy>