Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
618 chandransh 1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<project default="create_run_jar" name="ClientAgent" basedir=".">
3
    <!--this file was created by Eclipse Runnable JAR Export Wizard-->
4
	<!--and edited by Chandranshu to add the clean, init and build -->
5
	<!--targets.												   -->
6
    <!--ANT 1.7 is required                                        -->
7
 
8
	<property file="build.properties"/>
9
 
10
	<path id="localClasspath">
1007 chandransh 11
		<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/log4j/log4j-1.2.16.jar"/>
12
		<pathelement location="${basedir}/${thirdparty.location}/readonly/sqljdbc_3.0/sqljdbc.jar"/>
618 chandransh 13
	</path>
14
 
15
	<target name="clean" description="Delete old build and dist directories">
16
		<delete file="${dist.home}/ClientAgent.jar"/>
17
		<delete dir="${build.home}"/>
18
	</target>
19
 
20
	<target name="init"  description="Create build directory">
21
		<mkdir dir="${build.home}" />
22
	</target>
23
 
24
	<target name="build" depends="init" description="Compile Java sources">
25
		<javac srcdir="${source.home}"
26
				destdir="${build.home}"
27
				debug="${compile.debug}"
28
				deprecation="${compile.deprecation}"
29
				optimize="${compile.optimize}"
30
			    source="1.5" target="1.5"
31
				classpathref="localClasspath"/>
1007 chandransh 32
		<copy todir="${build.home}" file="${resource.home}/log4j.properties"/>
618 chandransh 33
	</target>
34
 
35
    <target name="create_run_jar" depends="build" description="Create Runnable Jar for Project ClientAgent">
36
        <jar destfile="${dist.home}/ClientAgent.jar" filesetmanifest="mergewithoutmain">
37
            <manifest>
38
                <attribute name="Main-Class" value="in.shop2020.agent.utils.Agent"/>
39
                <attribute name="Class-Path" value="."/>
40
            </manifest>
41
            <fileset dir="${build.home}"/>
1007 chandransh 42
            <zipfileset excludes="META-INF/*.SF" src="${basedir}/${thirdparty.location}/readonly/apache/log4j/log4j-1.2.16.jar"/>
43
            <zipfileset excludes="META-INF/*.SF" src="${basedir}/${thirdparty.location}/readonly/sqljdbc_3.0/sqljdbc.jar"/>
618 chandransh 44
        </jar>
45
    </target>
46
</project>