382N/A<?
xml version="1.0" encoding="ISO-8859-1"?>
382N/A<
project name="java_memcached" default="package" basedir=".">
382N/A <
property environment="env"/>
382N/A <
property name="project" value="java_memcached"/>
382N/A <!-- package release --> 382N/A <!-- ant package -Dver=release_1.3 -Dlog4j=1 --> 382N/A <
target name="package" depends="clean, setup, log4j, logger, pkg-compile, jar, javadoc">
382N/A <
tar tarfile="java_memcached-${ver}.tar.gz" basedir="." includes="java_memcached-${ver}/**" compression="gzip"/>
382N/A <
zip destfile="java_memcached-${ver}.zip" basedir="." includes="java_memcached-${ver}/**"/>
382N/A <
copy file="java_memcached-${ver}/java_memcached-${ver}.jar" todir="."/>
382N/A <
checksum file="java_memcached-${ver}.zip"/>
382N/A <
checksum file="java_memcached-${ver}.jar"/>
382N/A <
delete dir="java_memcached-${ver}" />
382N/A <
tar tarfile="java_memcached-${ver}.tar" basedir="." includes="java_memcached-${ver}.*"/>
382N/A <
delete dir="java_memcached-${ver}" />
382N/A <
delete file="java_memcached-${ver}.zip"/>
382N/A <
delete file="java_memcached-${ver}.jar"/>
382N/A <
mkdir dir="java_memcached-${ver}"/>
382N/A <
mkdir dir="java_memcached-${ver}/javadocs"/>
382N/A <
mkdir dir="java_memcached-${ver}/classes"/>
382N/A <
mkdir dir="java_memcached-${ver}/doc"/>
382N/A <
fileset dir="${code.dir}" defaultexcludes="true" excludes="**/*.xml **/*.swp **/*.swo"/>
382N/A <
copy todir="java_memcached-${ver}/doc">
382N/A <
fileset dir="${doc.dir}" defaultexcludes="true" excludes="**/*.swp **/*.swo"/>
382N/A <!-- copy license to root --> 382N/A <!-- copy changelog to root --> 382N/A <!-- if logger is log4j then need to filter to make sure import exists --> 382N/A <
target name="log4j" if="log4j" depends="clean, setup">
382N/A <
include name="**/*.java"/>
382N/A <
target name="logger" unless="log4j" depends="clean, setup">
382N/A <
include name="**/*.java"/>
382N/A <
target name="javadoc" depends="clean, setup, log4j, logger">
382N/A <
fileset dir="java_memcached-${ver}/javadocs" />
382N/A <
javadoc sourcepath="java_memcached-${ver}/src" 382N/A destdir="java_memcached-${ver}/javadocs" 382N/A windowtitle="java memcached client api documentation" 382N/A bottom="Copyright © 2005 - greg whalin">
382N/A <
arg value="-notimestamp" />
382N/A <!-- compilation target for packeging operations --> 382N/A <
target name="pkg-compile" depends="clean, setup, log4j, logger">
382N/A <
javac debug="yes" srcdir="java_memcached-${ver}/src" destdir="java_memcached-${ver}/classes" deprecation="true">
382N/A <
target name="jar" depends="pkg-compile">
382N/A <
jar compress="yes" jarfile="java_memcached-${ver}/java_memcached-${ver}.jar" basedir="java_memcached-${ver}/classes"/>
382N/A <!-- compilation target --> 382N/A <
target name="compile">
382N/A <
compilerarg value="-Xlint:unchecked"/>