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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
<!--
<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "ant.dtd">
-->
<!-- An ANT build file for Pixie -->
<!-- Based on a script written by David Gilbert -->
<!-- -->
<!-- To run this script, you need to make sure the libraries used by -->
<!-- Pixie are copied to the ../lib directory (or edit the -->
<!-- init-general task to point to the appropriate jar files). -->
<!-- -->
<!-- This script will create temporary directories ../build and -->
<!-- ../distribution, as working areas. A ../javadoc directory will -->
<!-- be created for the Javadoc HTML pages. -->
<!-- -->
<!-- If you have comments about this script, please post a message -->
<!-- in the Pixie forum. -->
<project name="pixie" default="all" basedir=".">
<import file="ant/build-lib.xml"/>
<target name="init">
<tstamp/>
<property name="builddir" value="build"/>
<property file="${user.home}/.build-pentaho-reporting-pixie.properties"/>
<property file="build.properties"/>
<isClassAndFileAvailable class-name="org.jfree.JCommon"
property-name="lib.jcommon.present"
file-name="${libdir}/${jcommon-jar-file}"/>
<fail unless="lib.jcommon.present"/>
</target>
<target name="compile" depends="init">
<echo>Building Pixie</echo>
<build-all source-dir="source"
target-jar="${pixie-jar-file}">
<all-classpath>
<pathelement location="${libdir}/${jcommon-jar-file}"/>
</all-classpath>
<all-resources>
<include name="*.properties"/>
<include name="**/*.properties"/>
</all-resources>
</build-all>
</target>
<target name="compile-retro" depends="init"
description="Compile the Pixie source code using a custom JIKES setup.">
<build-retro target-jar="${pixie-jar-file}"
source-dir="source"
jdk-dir="${build.retro.jdk}">
<all-classpath>
<pathelement location="${libdir}/${jcommon-jar-file}"/>
</all-classpath>
<all-resources>
<include name="*.properties"/>
<include name="**/*.properties"/>
</all-resources>
</build-retro>
</target>
<!-- Generate the Pixie JavaDoc HTML pages -->
<!-- Dont expect too much yet, as most classes are still undocumented -->
<target name="javadoc" depends="init">
<delete dir="javadoc"/>
<mkdir dir="javadoc"/>
<javadoc destdir="javadoc"
windowtitle="Pixie Library"
overview="source/overview.html">
<packageset dir="source" defaultexcludes="yes">
<include name="org/jfree/pixie/**"/>
</packageset>
<classpath>
<pathelement location="${libdir}/${jcommon-jar-file}"/>
</classpath>
</javadoc>
</target>
<target name="fill-dist-dir">
<!-- copy across README -->
<copy file="README.txt"
tofile="${dist-dir}/README.txt" failonerror="false"/>
<!-- copy across LICENCE -->
<copy file="licence-LGPL.txt"
tofile="${dist-dir}/licence-LGPL.txt"/>
<!-- copy across ChangeLog -->
<copy file="ChangeLog.txt" tofile="${dist-dir}/ChangeLog.txt"/>
<!-- copy across runtime jar file -->
<copy file="${pixie-jar-file}" tofile="${dist-dir}/${pixie-jar-file}"/>
<!-- copy across source files -->
<copy todir="${dist-dir}/source">
<fileset dir="source"/>
</copy>
<!-- copy across lib files -->
<copy todir="${dist-dir}/lib">
<fileset dir="lib"/>
</copy>
<!-- copy across ant build file (this file) -->
<copy file="build.xml"
tofile="${dist-dir}/build.xml"/>
<copy file="ant/build-lib.xml"
tofile="${dist-dir}/ant/build-lib.xml"/>
<copy file="build.properties"
tofile="${dist-dir}/build.properties"/>
</target>
<!-- Make .zip distribution for libfonts -->
<target name="make-zip" depends="compile">
<make-zip lib.version="${pixie.version}" lib.name="${pixie.name}"/>
</target>
<!-- Make .tar.gz distribution for libfonts -->
<target name="make-targz" depends="compile">
<make-targz lib.version="${pixie.version}" lib.name="${pixie.name}"/>
</target>
<target name="maven-bundle" depends="compile" >
<make-maven-bundle lib.version="${pixie.version}"
lib.name="${pixie.name}"
lib.file="${pixie-jar-file}"
target="${pixie-bundle-file}"/>
</target>
<target name="all" depends="init, compile, javadoc, make-zip, make-targz, maven-bundle"/>
</project>
|