Subversion Repositories XServices

Rev

Rev 144 | Rev 173 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 144 Rev 157
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">
3
 
3
 
4
	<property name="current-loc" location="." />
4
	<property name="current-loc" location="." />
5
	<property name="workspace" location=".." />
5
	<property name="workspace" location=".." />
6
	<property name="htmldir" value="${current-loc}/doc/html" />
6
	<property name="htmldir" value="${current-loc}/doc/html" />
7
	<property name="docbookdir" value="C:\JAVA-DEV\docbook-xsl-ns-1.76.1\html\" />
7
	<property name="docbookdir" value="C:\JAVA-DEV\docbook-xsl-ns-1.76.1\html\" />
8
	<property name="docbooksource" value="${current-loc}/doc" />
8
	<property name="docbooksource" value="${current-loc}/doc" />
9
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
9
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
10
 
10
 
11
 
11
 
12
	<!-- XSLT Chunking Properties -->
12
	<!-- XSLT Chunking Properties -->
13
	<property name="base.dir" value="${htmldir}" />
13
	<property name="base.dir" value="${htmldir}" />
14
 
14
 
15
	<target name="merge">
15
	<target name="merge">
16
		<!-- XInclude support comes with Eclipse XML Tools Project,
16
		<!-- XInclude support comes with Eclipse XML Tools Project,
17
			the Ant target needs to be executed in the Eclispe Workspace JRE
17
			the Ant target needs to be executed in the Eclispe Workspace JRE
18
			in order to get found. Any custom project specific runtime
18
			in order to get found. Any custom project specific runtime
19
			may not work.
19
			may not work.
20
		-->
20
		-->
21
		<xsl.xinclude in="${docbooksource}/BruteXServices_User_Guide.xml" out="${docbooksource}/BruteXServices_User_Guide.dbk" />
21
		<xsl.xinclude in="${docbooksource}/BruteXServices_User_Guide.xml" out="${docbooksource}/BruteXServices_User_Guide.dbk" />
22
	</target>
22
	</target>
23
 
23
 
24
	<target name="clean-doc">
24
	<target name="clean-doc">
25
		<delete dir="${htmldir}" />
25
		<delete dir="${htmldir}" />
26
		<mkdir dir="${htmldir}" />
26
		<mkdir dir="${htmldir}" />
27
	</target>
27
	</target>
28
 
28
 
29
	<target name="create-doc" depends="clean-doc, merge">
29
	<target name="create-doc" depends="clean-doc, merge">
30
 
30
 
31
		<xslt force="true" style="${docbookdir}/../toHTML.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
31
		<xslt force="true" style="${docbookdir}/../toHTML.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
32
			<factory name="${xalan}" />
32
			<factory name="${xalan}" />
33
			<param name="base.dir" expression="${htmldir}/" />
33
			<param name="base.dir" expression="${htmldir}/" />
34
			<param name="use.id.as.filename" expression="1" />
34
			<param name="use.id.as.filename" expression="1" />
-
 
35
			<param name="html.stylesheet" expression="style.css" />
35
		</xslt>
36
		</xslt>
-
 
37
	<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
36
	</target>
38
	</target>
37
 
39
 
38
	<target name="create-webdoc" depends="clean-doc, merge">
40
	<target name="create-webdoc" depends="clean-doc, merge">
39
 
41
 
40
		<xslt force="true" style="${docbookdir}/../fo/docbook.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/xservices.fo">
42
		<xslt force="true" style="${docbookdir}/../fo/docbook.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/xservices.fo">
41
			<factory name="${xalan}" />
43
			<factory name="${xalan}" />
42
			<param name="base.dir" expression="${htmldir}/" />
44
			<param name="base.dir" expression="${htmldir}/" />
43
			<param name="use.id.as.filename" expression="1" />
45
			<param name="use.id.as.filename" expression="1" />
44
			<param name="fop.extensions" expression="0" />
46
			<param name="fop.extensions" expression="0" />
45
		</xslt>
47
		</xslt>
46
	</target>
48
	</target>
47
 
49
 
48
	<!-- ================================= 
50
	<!-- ================================= 
49
	          target: resolve              
51
	          target: resolve              
50
	         ================================= -->
52
	         ================================= -->
51
	<target name="resolve" description="--> retrieve dependencies with ivy">
53
	<target name="resolve" description="--> retrieve dependencies with ivy">
52
		<ivy:retrieve />
54
		<ivy:retrieve />
53
	</target>
55
	</target>
54
 
56
 
55
</project>
57
</project>