Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="jar" name="Common">
    <property environment="env"/>
    <property name="thirdparty.location" value="../lib"/>
    <property name="ThriftConfig.location" value="../ThriftConfig"/>
    <property name="debuglevel" value="source,lines,vars"/>
    <property name="target" value="1.6"/>
    <property name="source" value="1.6"/>
    <path id="EAR Libraries.libraryclasspath"/>
    
    <path id="Common.classpath">
        <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"/>
        <pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
    </path>
    <target name="init">
        <mkdir dir="bin"/>
        <copy includeemptydirs="false" todir="bin">
            <fileset dir="src">
                <exclude name="**/*.launch"/>
                <exclude name="**/*.java"/>
            </fileset>
        </copy>
    </target>
    <target name="clean">
        <delete dir="bin"/>
    </target>
    <target depends="clean" name="cleanall">
        
    </target>
    <target depends="build-project" name="build"/>
    
    <target depends="init" name="build-project">
        <echo message="${ant.project.name}: ${ant.file}"/>
        <javac destdir="bin" source="${source}" target="${target}">
            <src path="src"/>
            <classpath refid="Common.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>