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">
11
		<fileset dir="${basedir}" includes="**/*.jar"/>
12
	</path>
13
 
14
	<target name="clean" description="Delete old build and dist directories">
15
		<delete file="${dist.home}/ClientAgent.jar"/>
16
		<delete dir="${build.home}"/>
17
	</target>
18
 
19
	<target name="init"  description="Create build directory">
20
		<mkdir dir="${build.home}" />
21
	</target>
22
 
23
	<target name="build" depends="init" description="Compile Java sources">
24
		<javac srcdir="${source.home}"
25
				destdir="${build.home}"
26
				debug="${compile.debug}"
27
				deprecation="${compile.deprecation}"
28
				optimize="${compile.optimize}"
29
			    source="1.5" target="1.5"
30
				classpathref="localClasspath"/>
31
		<copy todir="${build.home}" file="${source.home}/log4j.properties"/>
32
	</target>
33
 
34
    <target name="create_run_jar" depends="build" description="Create Runnable Jar for Project ClientAgent">
35
        <jar destfile="${dist.home}/ClientAgent.jar" filesetmanifest="mergewithoutmain">
36
            <manifest>
37
                <attribute name="Main-Class" value="in.shop2020.agent.utils.Agent"/>
38
                <attribute name="Class-Path" value="."/>
39
            </manifest>
40
            <fileset dir="${build.home}"/>
41
            <zipfileset excludes="META-INF/*.SF" src="${basedir}/lib/log4j-1.2.16.jar"/>
42
            <zipfileset excludes="META-INF/*.SF" src="${basedir}/lib/sqljdbc.jar"/>
43
        </jar>
44
    </target>
45
</project>