1 <?xml version="1.0" encoding="UTF-8"?>
3 ====================================================================
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version 2.0
8 (the "License"); you may not use this file except in compliance with
9 the License. You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ====================================================================
20 <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN" "./dtd/document-v13.dtd">
24 <title>How To Build POI</title>
26 <person email="user@poi.apache.org" name="Glen Stampoultzis" id="GS"/>
27 <person email="tetsuya@apache.org" name="Tetsuya Kitahata" id="TK"/>
32 <title>Installing Ant</title>
34 The POI build system requires two components to perform a
36 <link href="ext:ant.apache.org/">Ant</link> and
37 <link href="ext:xml.apache.org/forrest">forrest</link>.
40 Specifically the build has been tested to work with Ant version
41 1.5.3 and Forrest 0.4. To install these products download
42 the distributions and follow the instructions in their
43 documentation. Make sure you don't forget to set the
44 environment variables FORREST_HOME and ANT_HOME. The
45 ANT_HOME/bin directory should be in the path.
48 One these products are installed you will also need to
49 download some extra jar files required by the build.
58 <td>http://www.ibiblio.org/maven/junit/jars/</td>
62 <td>http://www.ibiblio.org/maven/xerces/jars/</td>
66 <td>http://www.ibiblio.org/maven/jdepend/jars/</td>
70 <td>http://www.ibiblio.org/maven/xalan/jars/</td>
74 Just pick the latest versions of these jars and place
75 them in ANT_HOME/lib and make sure that optional.jar is
80 <title>Running the Build</title>
82 On the first run the ant build system will download all
83 the jars required by the project to build ant. If you're
84 behind a firewall this may cause some problems. Should you
85 need to it's possible to manually put the jars in the
86 correct directories. These can be obtained from here:
94 <td>/commons-logging/jars/commons-logging-1.0.1.jar</td>
98 <td>/log4j/jars/log4j-1.2.8.jar</td>
102 <td>/commons-beanutils/jars/commons-beanutils-1.6.jar</td>
103 <td>src/contrib/lib</td>
106 <td>/commons-collections/jars/commons-collections-2.1.jar</td>
107 <td>src/contrib/lib</td>
110 <td>/commons-lang/jars/commons-lang-1.0-b1.jar</td>
111 <td>src/contrib/lib</td>
114 <td>/junit/jars/junit-3.8.1.jar</td>
119 The main targets of interest to our users are:
128 <td>Erase all build work products (ie, everything in the
133 <td>Compiles all files from main, contrib and scratchpad</td>
137 <td>Run all unit tests from main, contrib and scratchpad</td>
141 <td>Generate all documentation for the system</td>
144 <td>generate-records</td>
145 <td>Generate records from the XML record defintitions</td>
148 <td>generate-types</td>
149 <td>Generate types from the XML type definitions (this is
154 <td>Produce jar files</td>
158 <td>Create a distribution.</td>
162 <td>Runs clean before creating the distribution.</td>