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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
<?xml version="1.0"?>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- iText, a JAVA - PDF library -->
<!-- $Id: compile.xml 3954 2009-06-08 00:50:15Z xlv $ -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<project name="iText.compile" default="help">
<property file="local.properties" />
<property file="${user.home}/.ant.properties" />
<property file=".ant.properties" />
<path id="itext.classpath">
<pathelement location="${itext.bin}"/>
<!-- jars needed for iText (core) -->
<pathelement path="${itext.lib}/${lib.bcmail}"/>
<pathelement path="${itext.lib}/${lib.bcprov}"/>
<pathelement path="${itext.lib}/${lib.bctsp}"/>
<!-- jars needed for RUPS -->
<pathelement path="${itext.lib}/${lib.pdf-renderer}"/>
<pathelement path="${itext.lib}/${lib.dom4j}"/>
</path>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Help -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="help" description="--> shows the help screen">
<echo>COMPILING AND JARRING THE CODE (compile.xml)</echo>
<echo>ant compile: compiles iText (core)</echo>
<echo>ant compile.rtf: compiles iText RTF</echo>
<echo>ant compile.rups: compiles iText RUPS</echo>
<echo>ant jar: compiles and jars iText</echo>
<echo>ant jar.rtf: compiles and jars iText RTF</echo>
<echo>ant jar.rups: compiles and jars iText RUPS</echo>
<echo />
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile" description="--> compiles the iText code">
<mkdir dir="${itext.bin}" />
<javac source="${itext.jdk.core}" target="${itext.jdk.core}" srcdir="${itext.src}/core" destdir="${itext.bin}" encoding="iso-8859-1">
<classpath refid="itext.classpath"/>
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the rtf code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile.rtf" depends="compile" description="--> compiles the iText code">
<mkdir dir="${itext.rtf.bin}" />
<javac source="${itext.jdk.core}" target="${itext.jdk.core}" srcdir="${itext.rtf.src}" destdir="${itext.rtf.bin}" encoding="iso-8859-1">
<classpath refid="itext.classpath"/>
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the RUPS code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile.rups" depends="compile" description="--> compiles the RUPS code">
<mkdir dir="${itext.rups.bin}" />
<javac source="${itext.jdk.rups}" target="${itext.jdk.rups}" srcdir="${itext.rups.src}" destdir="${itext.rups.bin}" encoding="iso-8859-1">
<classpath refid="itext.classpath"/>
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the Toolbox code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile.toolbox" depends="compile" description="--> compiles the Toolbox code">
<mkdir dir="${itext.toolbox.bin}" />
<javac source="${itext.jdk.toolbox}" target="${itext.jdk.toolbox}" srcdir="${itext.toolbox.src}" destdir="${itext.toolbox.bin}" encoding="iso-8859-1">
<classpath refid="itext.classpath"/>
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Jarring the code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="make.jar" depends="compile" description="--> makes a jarfile from the iText code">
<mkdir dir="${itext.bin}/com/lowagie/text/pdf/fonts" />
<copy todir="${itext.bin}/com/lowagie/text/pdf/fonts" overwrite="yes">
<fileset dir="${itext.src}/core/com/lowagie/text/pdf/fonts">
<include name="**/*.afm"/>
<include name="**/*.html"/>
</fileset>
</copy>
<copy todir="${itext.bin}/com/lowagie/text/" overwrite="yes">
<fileset dir="${itext.src}/core/com/lowagie/text/">
<include name="**/*.txt"/>
</fileset>
</copy>
<jar jarfile="${itext.jar}" basedir="${itext.bin}">
<manifest>
<attribute name="Main-Class" value="com.lowagie.tools.ToolboxAvailable"/>
<!-- <attribute name="Class-Path" value="iText-toolbox.jar iText-toolbox-${releasenumber}.jar ${lib.bcmail} ${lib.bcprov} ${lib.bctsp}"/> -->
</manifest>
</jar>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling and Jarring the code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar" depends="compile, make.jar" description="--> makes a jarfile from the iText code" />
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Jarring the rtf code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar.rtf" depends="compile.rtf" description="--> makes a jarfile from the iText rtf code">
<jar jarfile="${itext.rtf.jar}" basedir="${itext.rtf.bin}"/>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Making the jars for RUPS -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar.rups" depends="compile.rups">
<copy todir="${itext.rups.bin}" overwrite="yes">
<fileset dir="${itext.rups.src}">
<include name="**/*.png"/>
</fileset>
</copy>
<jar destfile="${itext.rups.jar}" basedir="${itext.rups.bin}" includes="**/*.class, **/*.png">
<manifest>
<attribute name="Main-Class" value="com.lowagie.rups.Rups"/>
<attribute name="Class-Path" value="iText-${releasenumber}.jar ${lib.pdf-renderer} ${lib.bcmail} ${lib.bcprov} ${lib.bctsp} ${lib.dom4j}"/>
</manifest>
</jar>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Making the jars for the Toolbox -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar.toolbox" depends="compile.toolbox">
<copy todir="${itext.toolbox.bin}" overwrite="yes">
<fileset dir="${itext.toolbox.src}">
<include name="**/*.gif"/>
<include name="**/*.png"/>
<include name="**/*.txt"/>
</fileset>
</copy>
<jar destfile="${itext.toolbox.jar}" basedir="${itext.toolbox.bin}" includes="**/*.class, **/*.png, **/*.txt, **/*.gif">
<manifest>
<attribute name="Main-Class" value="com.lowagie.toolbox.Toolbox"/>
<attribute name="Class-Path" value="iText-${releasenumber}.jar ${lib.bcmail} ${lib.bctsp} ${lib.bcprov}"/>
</manifest>
</jar>
</target>
<!-- This is probably no longer used by anyone: -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the code for debugging -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile.debug" description="--> compiles the iText code for debugging">
<mkdir dir="${itext.bin}" />
<javac source="${itext.jdk.core}" target="${itext.jdk.core}" srcdir="${itext.src}/core" destdir="${itext.bin}" listfiles="yes" debug="true" debuglevel="lines,vars,source" encoding="iso-8859-1">
<classpath refid="itext.classpath"/>
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Jarring the code (debug) -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar.debug" depends="compile.debug, make.jar" description="--> makes a jarfile from the iText code" />
</project>
|