<?xml version="1.0"?> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- iText, a JAVA - PDF library --> <!-- $Id: site.xml,v 1.15 2006/06/23 11:56:04 blowagie Exp $ --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <project name="iText.site" default="help" basedir="."> <property file=".ant.properties" /> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Help --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <target name="help" description="--> shows the help screen"> <echo>BUILDING THE iText SITE (site.xml)</echo> <echo>ant javadoc: Building the API documentation</echo> <echo>ant docs.tar.gz: Building and jarring the API documentation</echo> <echo>ant lowagie.com: Building the lowagie.com part</echo> <echo /> </target> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Building the pages for lowagie.com --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <target name="lowagie.com" description="--> building the pages for lowagie.com"> <mkdir dir="${itext.lowagie}" /> <copy todir="${itext.lowagie}/images" overwrite="no"> <fileset dir="${itext.src.lowagie}/images" /> </copy> <copy todir="${itext.lowagie}/ant" overwrite="no"> <fileset dir="${itext.src}/ant" /> </copy> <copy file="${itext.src}/build.xml" todir="${itext.lowagie}" overwrite="no" /> <copy file="${itext.src.lowagie}/style.css" todir="${itext.lowagie}" overwrite="no" /> <copy file="${itext.src.lowagie}/MPL-1.1.txt" todir="${itext.lowagie}" overwrite="no" /> <copy file="${itext.src.lowagie}/lgpl.txt" todir="${itext.lowagie}" overwrite="no" /> <copy file="${itext.src.lowagie}/itext.jnlp" todir="${itext.lowagie}" overwrite="no" /> <xslt basedir="${itext.src.lowagie}" destdir="${itext.lowagie}" extension=".html" style="${itext.src.lowagie}/lowagie.xsl" includes="*.xml"> <param name="releasenumber" expression="${releasenumber}"/> <param name="releasedate" expression="${releasedate}"/> <param name="earlyaccessnumber" expression="${earlyaccessnumber}"/> <param name="earlyaccesspaulo" expression="${earlyaccesspaulo}"/> <param name="earlyaccesslowagie" expression="${earlyaccesslowagie}"/> </xslt> </target> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Building the tutorial --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <target name="tutorial" description="--> building the pages for lowagie.com"> <mkdir dir="${itext.tutorial}" /> <mkdir dir="${itext.tutorial}/images" /> <mkdir dir="${itext.examples}" /> <copy file="${itext.src.tutorial}/style.css" todir="${itext.tutorial}" overwrite="no" /> <copy todir="${itext.examples}" overwrite="yes"> <fileset dir="${itext.src.examples}"> <include name="**/*.java"/> </fileset> </copy> <copy todir="${itext.tutorial}/images" overwrite="yes"> <fileset dir="${itext.src.tutorial}/images"> <include name="**/*.*"/> </fileset> </copy> <java classname="com.lowagie.tools.BuildTutorial" dir="${basedir}/${itext.src.tutorial}" fork="true"> <arg value="${basedir}/${itext.src.tutorial}" /> <arg value="${basedir}/${itext.build}" /> <arg value="examples.xsl" /> <arg value="tutorial.xsl" /> <classpath> <pathelement location="${itext.bin}/iText.jar" /> <pathelement location="${itext.bin}/crimson.jar" /> </classpath> </java> </target> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Building and archiving the tutorial --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <target name="tutorial.tar.gz" depends="tutorial" description="--> makes a tar.gz-file with the complete javadoc documentation"> <ant antfile="${itext.tutorial}/build.xml" inheritAll="false" /> <mkdir dir="${itext.dist}" /> <mkdir dir="${itext.downloads}" /> <tar tarfile="${itext.downloads}/tutorial.tar" basedir="${itext.build}" includes="tutorial/**, examples/**" /> <gzip zipfile="${itext.dist}/tutorial.tar.gz" src="${itext.downloads}/tutorial.tar" /> <delete file="${itext.downloads}/tutorial.tar" /> </target> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Building the API documentation --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <target name="javadoc" description="--> generates the complete documentation with javadoc"> <mkdir dir="${itext.docs}" /> <javadoc destdir="${itext.docs}" author="true" private="true"> <packageset dir="${itext.src}" defaultexcludes="yes"> <include name="com/lowagie/**" /> </packageset> </javadoc> </target> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Building and archiving the API documentation --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <target name="docs.tar.gz" depends="javadoc" description="--> makes a tar.gz-file with the complete javadoc documentation"> <mkdir dir="${itext.dist}" /> <mkdir dir="${itext.downloads}" /> <tar tarfile="${itext.downloads}/docs.tar" basedir="${itext.docs}" /> <gzip zipfile="${itext.dist}/docs.tar.gz" src="${itext.downloads}/docs.tar" /> <delete file="${itext.downloads}/docs.tar" /> </target> </project>