382N/A<?xml version="1.0" encoding="ISO-8859-1"?>
382N/A<project name="java_memcached" default="package" basedir=".">
382N/A
382N/A <property name="project.title" value="java memcached client" />
382N/A <property name="code.dir" value="src/com/danga/MemCached" />
382N/A <property name="doc.dir" value="doc" />
382N/A <property name="src.dir" value="src" />
382N/A <property name="build.dir" value="classes" />
382N/A
382N/A <property environment="env"/>
382N/A <property file="build.properties"/>
382N/A <property name="project" value="java_memcached"/>
382N/A
382N/A <path id="project.class.path">
382N/A <pathelement path = "lib/log4j.jar"/>
382N/A </path>
382N/A
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
382N/A <checksum file="java_memcached-${ver}.tar.gz"/>
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
382N/A <tar tarfile="java_memcached-${ver}.tar" basedir="." includes="java_memcached-${ver}.*"/>
382N/A </target>
382N/A
382N/A <target name="clean">
382N/A <delete dir="${build.dir}"/>
382N/A <delete dir="java_memcached-${ver}" />
382N/A <delete file="java_memcached-${ver}.tar.gz"/>
382N/A <delete file="java_memcached-${ver}.zip"/>
382N/A <delete file="java_memcached-${ver}.jar"/>
382N/A <delete file="java_memcached-${ver}.tar.gz.MD5"/>
382N/A <delete file="java_memcached-${ver}.zip.MD5"/>
382N/A <delete file="java_memcached-${ver}.jar.MD5"/>
382N/A </target>
382N/A
382N/A <target name="setup">
382N/A <mkdir dir="java_memcached-${ver}"/>
382N/A <mkdir dir="java_memcached-${ver}/javadocs"/>
382N/A <mkdir dir="java_memcached-${ver}/src/com/danga/MemCached"/>
382N/A <mkdir dir="java_memcached-${ver}/classes"/>
382N/A <mkdir dir="java_memcached-${ver}/doc"/>
382N/A
382N/A <!-- copy source -->
382N/A <copy todir="java_memcached-${ver}/src/com/danga/MemCached">
382N/A <fileset dir="${code.dir}" defaultexcludes="true" excludes="**/*.xml **/*.swp **/*.swo"/>
382N/A </copy>
382N/A
382N/A <!-- copy doc dir -->
382N/A <copy todir="java_memcached-${ver}/doc">
382N/A <fileset dir="${doc.dir}" defaultexcludes="true" excludes="**/*.swp **/*.swo"/>
382N/A </copy>
382N/A
382N/A <!-- copy license to root -->
382N/A <copy file="${doc.dir}/LICENSE.txt" todir="java_memcached-${ver}"/>
382N/A
382N/A <!-- copy changelog to root -->
382N/A <copy file="${doc.dir}/CHANGELOG.txt" todir="java_memcached-${ver}"/>
382N/A </target>
382N/A
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 <replace dir="java_memcached-${ver}/src/com/danga/MemCached" token="//import org.apache.log4j.Logger;" value="import org.apache.log4j.Logger;">
382N/A <include name="**/*.java"/>
382N/A </replace>
382N/A </target>
382N/A
382N/A <target name="logger" unless="log4j" depends="clean, setup">
382N/A <replace dir="java_memcached-${ver}/src/com/danga/MemCached" token="import org.apache.log4j.Logger;" value="//import org.apache.log4j.Logger;">
382N/A <include name="**/*.java"/>
382N/A </replace>
382N/A </target>
382N/A
382N/A <!-- javadocs -->
382N/A <target name="javadoc" depends="clean, setup, log4j, logger">
382N/A <delete>
382N/A <fileset dir="java_memcached-${ver}/javadocs" />
382N/A </delete>
382N/A
382N/A <javadoc sourcepath="java_memcached-${ver}/src"
382N/A destdir="java_memcached-${ver}/javadocs"
382N/A packagenames= "com.danga.*"
382N/A author= "true"
382N/A private="true"
382N/A version="true"
382N/A defaultexcludes="yes"
382N/A classpathref="project.class.path"
382N/A use="true"
382N/A windowtitle="java memcached client api documentation"
382N/A doctitle="&lt;h1&gt;${project.title} documentation (Version ${ver})&lt;/h1&gt;"
382N/A bottom="Copyright &#169; 2005 - greg whalin">
382N/A <arg value="-notimestamp" />
382N/A </javadoc>
382N/A </target>
382N/A
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 <classpath refid="project.class.path"/>
382N/A </javac>
382N/A </target>
382N/A
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 </target>
382N/A
382N/A <!-- compilation target -->
382N/A <target name="compile">
382N/A <mkdir dir="${build.dir}"/>
382N/A <javac debug="yes" srcdir="${src.dir}" destdir="${build.dir}" deprecation="true" compiler="modern">
382N/A <compilerarg value="-Xlint:unchecked"/>
382N/A <classpath refid="project.class.path"/>
382N/A </javac>
382N/A </target>
382N/A</project>