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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<?xml version="1.0"?>
<!-- ===================================================================
Build file for Stylebook
Notes:
This is a build file for use with the Jakarta Ant java build tool.
Installation Instructions:
To install Ant on your system, you need to checkout the
"jakarta-tools" CVS module. Then you should place the files
- ant.jar
- projectx-tr2.jar
- javac.jar
in your classpath. (XML parser abstraction is currently in
the todo list, volunteers welcome!)
Build Instructions:
To build, run
java org.apache.tools.ant.Main
on the directory where this file is located.
Note: See build.bat in this directory for info on setting up your classpath
to build Stylebook. If you are using the compile2/package2 option to build
a version of Stylebook that works with Xalan-J 2, Xalan-J 2 (NOT Xalan-J 1) must be on the
classpath and an up-to-date version of Xerces-J with javax.xml.parsers must also be on the
classpath.
Donald Leslie <donald_leslie@lotus.com>
9-11-00
Authors:
Stefano Mazzocchi <stefano@apache.org>
Copyright:
Copyright (c) 1999 The Apache Software Foundation.
$Id: build.xml 313292 2004-12-14 15:54:50Z dims $
==================================================================== -->
<project name="Stylebook" default="package2" basedir=".">
<target name="init">
<property name="name" value="stylebook"/>
<property name="version" value="1.0-b2"/>
<property name="version-xalan-2" value="1.0-b3_xalan-2"/> <!-- Version to use with Xalan-J 2 -->
<property name="build.compiler" value="classic"/>
<property name="debug" value="off"/>
<property name="build.dir" value="./build"/>
<property name="build.src" value="${build.dir}/src"/>
<property name="build.dest" value="${build.dir}/classes"/>
<property name="src.dir" value="./src"/>
<property name="bin.dir" value="./bin"/>
</target>
<target name="prepare" depends="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.src}"/>
<mkdir dir="${build.dest}"/>
<copy todir="${build.src}">
<fileset dir="${src.dir}"/>
</copy>
</target>
<!-- If compiling version to run with Xalan-J 1, must not include Xalan2Processor in the compile.
If compiling version to run with Xalan-J 2, must not include XalanProcessor in the compile. -->
<target name="compile" depends="prepare">
<javac srcdir="${build.src}" excludes="org/apache/stylebook/processors/Xalan2Processor.java" destdir="${build.dest}" classpath="${classpath}" debug="${debug}"/>
<copy todir="${build.dest}/org/apache/stylebook/data">
<fileset dir="${build.src}/org/apache/stylebook/data"/>
</copy>
</target>
<target name="package" depends="compile">
<jar jarfile="${bin.dir}/${name}-${version}.jar" basedir="${build.dest}" includes="org/**"/>
</target>
<!--Compile and Package to work with Xalan-J 2 -->
<target name="compile2" depends="prepare">
<javac srcdir="${src.dir}" excludes="org/apache/stylebook/processors/XalanProcessor.java" destdir="${build.dest}" debug="${debug}">
<exclude name="**/org/apache/stylebook/processors/XalanProcessor.java"/>
</javac>
<copy todir="${build.dest}/org/apache/stylebook/data">
<fileset dir="${build.src}/org/apache/stylebook/data"/>
</copy>
</target>
<target name="package2" depends="compile2">
<replace file="${build.dest}/org/apache/stylebook/data/engine.xml" token="XalanProcessor" value="Xalan2Processor"/>
<jar jarfile="${bin.dir}/${name}-${version-xalan-2}.jar" basedir="${build.dest}" includes="org/**"/>
</target>
<target name="clean">
<deltree dir="${build.dir}"/>
</target>
</project>
|