Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 2300df326ecb66542d20386770d4d3d6 > files > 8

itext2-manual-2.0.1-3mdv2008.0.x86_64.rpm

<?xml version="1.0"?>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- iText, a JAVA - PDF library                                      -->
<!-- $Id: download.xml,v 1.11 2007/02/02 15:38:56 blowagie Exp $         -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<project name="iText.download" default="help">
	
	<property file=".ant.properties" />
	
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- Help                                                             -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

    <target name="help" description="--> shows the help screen">
        <echo>DOWNLOADING iText (download.xml)</echo>
        <echo>ant download: downloads the source code needed to create iText.jar</echo>
        <echo>ant download.bin: downloads some precompiled jars and zips</echo>
        <echo>ant getFromCvs: downloads the complete CVS repository</echo>
        <echo />
	</target>
	
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- Getting the most recent code from CVS                            -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

    <target name="getFromCvs" description="--> gets the source code form CVS">
		<cvspass cvsroot="${itext.cvsroot}" password="" passfile=".cvspass" />
        <cvs command="export" passfile=".cvspass" compression="true" cvsRoot="${itext.cvsroot}" package="www" date="now" dest="${itext.home}" />
        <cvs command="export" passfile=".cvspass" compression="true" cvsRoot="${itext.cvsroot}" package="src" date="now" dest="${itext.home}" />
    </target>

    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- Getting the code from the sourceforge directory                  -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

    <target name="download" depends="download.bin" description="--> downloads the most recent release of the code">
	
        <mkdir dir="${itext.downloads}" />

        <mkdir dir="${itext.src}" />
        <gunzip src="${itext.downloads}/src.tar.gz" dest="${itext.downloads}/temp.tar" />
        <untar src="${itext.downloads}/temp.tar" dest="${itext.src}" />
        <delete file="${itext.downloads}/temp.tar" />
		
    </target>
	
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- Getting jars and zips that belong in the bin directory           -->
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

    <target name="download.bin" description="--> downloads files that hardly ever change">
        <mkdir dir="${itext.bin}" />
    </target>
</project>