Subversion Repositories SmartDukaan

Rev

Rev 1011 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<project basedir="." default="jar" name="ThriftConfig">
    <property environment="env"/>
    <property name="thirdparty.location" value="../lib"/>
    <property name="debuglevel" value="source,lines,vars"/>
    <property name="target" value="1.6"/>
    <property name="source" value="1.6"/>
    <property name="source.home" value="${basedir}/src/main/java"/>
    <path id="ThriftConfig.classpath">
        <pathelement location="bin"/>
        <pathelement location="${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
        <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
        <pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
    </path>
    <target name="init">
        <mkdir dir="bin"/>
        <copy includeemptydirs="false" todir="bin">
            <fileset dir="${source.home}">
                <exclude name="**/*.launch"/>
                <exclude name="**/*.java"/>
            </fileset>
        </copy>
    </target>
    <target name="clean">
        <delete dir="bin"/>
    </target>
    <target depends="clean" name="cleanall"/>
    <target depends="init" name="build">
        <echo message="${ant.project.name}: ${ant.file}"/>
        <javac destdir="bin" source="${source}" target="${target}">
            <src path="${source.home}"/>
            <classpath refid="ThriftConfig.classpath"/>
        </javac>
    </target>
    <target name="jar" depends="build">
        <jar destfile="${ant.project.name}.jar" basedir="bin"/>
        <copy file="${ant.project.name}.jar" tofile="../lib/${ant.project.name}.jar"/>
    </target>
    
</project>