2
~ Copyright (c) 2007, Pentaho Corporation. All Rights Reserved.
5
<!-- An ANT build file for libfonts. -->
7
<!-- Written by David Gilbert and modified for LibXML by Thomas Morgner. -->
9
<!-- This script has been tested with Ant version 1.6.2. -->
11
<!-- Several temporary directories are created while the script is -->
12
<!-- running: "./build" and "./distribution". -->
14
<!-- A "./javadoc" directory will be created for the Javadoc -->
17
<!-- The script should work for the distribution and also the CVS -->
20
<project name="libxml" default="all" basedir=".">
22
<import file="ant/build-lib.xml"/>
24
<target name="initialise" description="Initialise required settings.">
27
<property name="builddir" value="build"/>
29
<property file="${user.home}/.build-pentaho-reporting-libxml.properties"/>
30
<property file="build.properties"/>
32
<isClassAndFileAvailable class-name="org.jfree.JCommon"
33
property-name="lib.jcommon.present"
34
file-name="${libdir}/${jcommon-jar-file}"/>
35
<fail unless="lib.jcommon.present"/>
37
<isClassAndFileAvailable class-name="org.jfree.resourceloader.LibLoaderInfo"
38
property-name="lib.libloader.present"
39
file-name="${libdir}/${libloader-jar-file}">
41
<pathelement location="${libdir}/${jcommon-jar-file}"/>
43
</isClassAndFileAvailable>
44
<fail unless="lib.libloader.present"/>
49
<target name="compile-retro" depends="initialise"
50
description="Compile the LibXML source code using a custom JIKES setup.">
52
<build-retro target-jar="${libxml-jar-file}"
54
jdk-dir="${build.retro.jdk}">
56
<pathelement location="${libdir}/${jcommon-jar-file}"/>
57
<pathelement location="${libdir}/${jaxp-jar-file}"/>
58
<pathelement location="${libdir}/${libloader-jar-file}"/>
61
<include name="*.properties"/>
62
<include name="**/*.properties"/>
68
<target name="compile" depends="initialise"
69
description="Compile the libFonts source code.">
71
<build-all target-jar="${libxml-jar-file}" source-dir="source">
73
<pathelement location="${libdir}/${jcommon-jar-file}"/>
74
<pathelement location="${libdir}/${libloader-jar-file}"/>
75
<pathelement location="${libdir}/${jaxp-jar-file}"/>
78
<include name="*.properties"/>
79
<include name="**/*.properties"/>
80
<include name="*.css"/>
81
<include name="**/*.css"/>
86
<target name="javadoc" depends="initialise">
87
<delete dir="javadoc"/>
88
<mkdir dir="javadoc"/>
89
<javadoc destdir="javadoc"
90
windowtitle="LibXML Class Library (version ${libxml.version})"
93
<pathelement location="${libdir}/${jcommon-jar-file}"/>
94
<pathelement location="${libdir}/${libloader-jar-file}"/>
96
<packageset dir="source" defaultexcludes="yes">
97
<include name="org/jfree/xmlns"/>
102
<target name="fill-dist-dir">
103
<!-- copy across README -->
104
<copy file="README.txt"
105
tofile="distribution/README.txt"/>
107
<!-- copy across the ChangeLog -->
108
<copy file="ChangeLog.txt"
109
tofile="distribution/ChangeLog.txt"/>
111
<!-- copy across LICENCE -->
112
<copy file="licence-LGPL.txt"
113
tofile="distribution/licence-LGPL.txt"/>
115
<!-- copy across runtime jar file -->
116
<copy file="${libxml-jar-file}"
117
tofile="distribution/${libxml-jar-file}"/>
119
<!-- copy across source files -->
120
<copy todir="distribution/source">
121
<fileset dir="source"/>
124
<!-- copy across source files -->
125
<copy todir="distribution/lib">
129
<!-- copy across ant build file (this file) -->
130
<copy file="build.xml"
131
tofile="distribution/build.xml"/>
132
<copy file="ant/build-lib.xml"
133
tofile="distribution/ant/build-lib.xml"/>
135
<copy file="build.properties"
136
tofile="distribution/build.properties"/>
140
<target name="zip" depends="compile">
141
<make-zip lib.version="${libxml.version}" lib.name="${libxml.name}"/>
144
<target name="targz" depends="compile">
145
<make-targz lib.version="${libxml.version}" lib.name="${libxml.name}"/>
149
depends="compile,javadoc,zip,targz"
150
description="Compiles Libfonts, builds the jar files, generates the Javadoc HTML pages and creates distribution files (.zip and .tar.gz).">
1
<!--===========================================================================
2
This is the build file for the libformula project.
4
This build file will use the common_build.xml file as the default build
5
process and should only override the tasks that need to differ from
8
See common_build.xml for more details
9
============================================================================-->
10
<project name="libformula" basedir="." default="jar">
13
This build file is used to create the libformula project
14
and works with the common_build.xml file.
17
<!-- Define the default location of the common build file -->
18
<property name="common.build.file" value="./common_build.xml"
19
description="This is the location of the standardized common_build.xml file"/>
21
<!-- Import the common_build.xml file which contains all the default tasks -->
22
<import file="${common.build.file}"/>
25
AS STATED ABOVE, THE ONLY TASKS THAT SHOULD EXIST IN THIS BUILD FILE ARE
26
THE TASKS THAT NEED TO DIFFER FROM THE DEFAULT IMPLEMENTATION OF THE TASKS
27
FOUND IN common_build.xml.
30
<target name="dist" description="Creates all the distributable items for this project" >
31
<ant antfile="${common.build.file}" target="dist" />
33
<!-- Create the required zip distribution which contains the entire project -->
34
<zip destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.zip">
35
<fileset dir="${basedir}">
36
<exclude name="bin/" />
37
<exclude name="dist/" />
38
<exclude name="eclipse-bin/" />
40
<zipfileset dir="${dist.dir}" includes="**/*.jar" />