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
|
<?xml version="1.0"?>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- iText, a JAVA - PDF library -->
<!-- $Id: compile.xml,v 1.8 2005/04/08 07:33:23 blowagie Exp $ -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<project name="iText.compile" default="help">
<property file=".ant.properties" />
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Help -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="help" description="--> shows the help screen">
<echo>COMPILING AND JARRING THE CODE (compile.xml)</echo>
<echo>ant compile: compiles iText</echo>
<echo>ant compile.debug: compiles iText and allows you to debug the code</echo>
<echo>ant jar: compiles and jars iText</echo>
<echo>ant jar.debug: compiles for debugging and jars iText</echo>
<echo />
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile" description="--> compiles the iText code">
<mkdir dir="${itext.classes}" />
<javac srcdir="${itext.src}" destdir="${itext.classes}">
<include name="com/**" />
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling the code for debugging -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="compile.debug" description="--> compiles the iText code for debugging">
<mkdir dir="${itext.classes}" />
<javac srcdir="${itext.src}" destdir="${itext.classes}" listfiles="yes" debug="true" debuglevel="lines,vars,source">
<include name="com/**" />
</javac>
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Jarring the code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="make.jar" description="--> makes a jarfile from the iText code">
<mkdir dir="${itext.bin}" />
<mkdir dir="${itext.classes}/com/lowagie/text/pdf/fonts" />
<copy todir="${itext.classes}/com/lowagie/text/pdf/fonts" overwrite="yes">
<fileset dir="${itext.src}/com/lowagie/text/pdf/fonts">
<include name="**/*.afm"/>
</fileset>
</copy>
<copy todir="${itext.classes}/com/lowagie/text/" overwrite="yes">
<fileset dir="${itext.src}/com/lowagie/text/">
<include name="**/*.txt"/>
</fileset>
</copy>
<copy todir="${itext.classes}/com/lowagie/tools/plugins" overwrite="yes">
<fileset dir="${itext.src}/com/lowagie/tools/plugins/">
<include name="**/*.txt"/>
</fileset>
</copy>
<jar jarfile="${itext.bin}/iText.jar" basedir="${itext.classes}" manifest="../META-INF/MANIFEST.MF" excludes="com/lowagie/examples/**,**/*.cmap,**/*.properties,com/lowagie/text/pdf/fonts/cmaps/**" />
</target>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Compiling and Jarring the code -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar" depends="compile, make.jar" description="--> makes a jarfile from the iText code" />
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Jarring the code (debug) -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<target name="jar.debug" depends="compile.debug, make.jar" description="--> makes a jarfile from the iText code" />
</project>
|