Subversion Repositories SmartDukaan

Rev

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

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="ClientAgent" basedir=".">
    <!--this file was created by Eclipse Runnable JAR Export Wizard-->
        <!--and edited by Chandranshu to add the clean, init and build -->
        <!--targets.                                                                                               -->
    <!--ANT 1.7 is required                                        -->

        <property file="build.properties"/>

        <path id="localClasspath">
                <pathelement location="${basedir}/${thirdparty.location}/readonly/apache/log4j/log4j-1.2.16.jar"/>
                <pathelement location="${basedir}/${thirdparty.location}/readonly/sqljdbc_3.0/sqljdbc.jar"/>
        </path>
                
        <target name="clean" description="Delete old build and dist directories">
                <delete file="${dist.home}/ClientAgent.jar"/>
                <delete dir="${build.home}"/>
        </target>
        
        <target name="init"  description="Create build directory">
                <mkdir dir="${build.home}" />
        </target>
        
        <target name="build" depends="init" description="Compile Java sources">
                <javac srcdir="${source.home}"
                                destdir="${build.home}"
                                debug="${compile.debug}"
                                deprecation="${compile.deprecation}"
                                optimize="${compile.optimize}"
                            source="1.5" target="1.5"
                                classpathref="localClasspath"/>
                <copy todir="${build.home}" file="${resource.home}/log4j.properties"/>
        </target>

    <target name="create_run_jar" depends="build" description="Create Runnable Jar for Project ClientAgent">
        <jar destfile="${dist.home}/ClientAgent.jar" filesetmanifest="mergewithoutmain">
            <manifest>
                <attribute name="Main-Class" value="in.shop2020.agent.utils.Agent"/>
                <attribute name="Class-Path" value="."/>
            </manifest>
            <fileset dir="${build.home}"/>
            <zipfileset excludes="META-INF/*.SF" src="${basedir}/${thirdparty.location}/readonly/apache/log4j/log4j-1.2.16.jar"/>
            <zipfileset excludes="META-INF/*.SF" src="${basedir}/${thirdparty.location}/readonly/sqljdbc_3.0/sqljdbc.jar"/>
        </jar>
    </target>
</project>