Subversion Repositories SmartDukaan

Rev

Rev 734 | Rev 945 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
490 rajveer 1
<?xml version="1.0"?>
2
 
3
 
4
<!-- ====================================================================== 
5
     Date:     November 2010
6
 
7
     Project:  Support
8
 
9
     Author:   Rajveer Singh
10
     ====================================================================== -->
11
 
12
 
944 chandransh 13
 
490 rajveer 14
<project name="Support" default="archive" basedir=".">
944 chandransh 15
 
16
	<description>
490 rajveer 17
           Shop2020 Support
18
    </description>
944 chandransh 19
 
20
	<property file="build.properties"/>
21
 
22
	<filelist id="apache.libs" dir="${basedir}/${thirdparty.location}/readonly/apache">
23
		<file name="commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
24
		<file name="commons-digester-2.0/commons-digester-2.0.jar"/>
25
		<file name="commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"/>
26
		<file name="commons-io-1.3.2/commons-io-1.3.2.jar"/>
27
		<file name="commons-lang-2.4/commons-lang-2.4.jar"/>
28
		<file name="commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
29
		<file name="commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
30
		<file name="commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
31
		<file name="ezmorph/ezmorph-1.0.3.jar"/>
32
		<file name="json/json-lib-2.1-jdk15.jar"/>
33
		<file name="jsp-2.1/jsp-api.jar"/>
34
		<file name="ognl/ognl-2.7.3.jar"/>
35
		<file name="poi-3.7/poi-3.7-20101029.jar"/>
36
		<file name="sevlet-2.5/servlet-api.jar"/>
37
		<file name="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
38
		<file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
39
		<file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
40
		<file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
41
		<file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
42
		<file name="thrift-0.2.0/libthrift.jar"/>
43
		<file name="tomcat-juli/tomcat-juli.jar"/>
44
		<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
45
		<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
46
		<file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
47
	</filelist>
490 rajveer 48
 
944 chandransh 49
	<filelist id="Support.libs" dir="${basedir}/${thirdparty.location}">
50
		<file name="readonly/freemarker/freemarker-2.3.15.jar"/>
51
		<file name="readonly/slf4j/slf4j-api-1.5.8.jar"/>
52
		<file name="readonly/slf4j/slf4j-simple-1.5.8.jar"/>
53
		<file name="readonly/iText/iText-5.0.4.jar"/>
54
		<file name="Common.jar"/>
55
		<file name="ThriftConfig.jar"/>
56
	</filelist>
57
 
604 chandransh 58
	<path id="Support.classpath">
59
		<pathelement location="build/classes"/>
944 chandransh 60
		<filelist refid="apache.libs"/>
61
		<filelist refid="Support.libs"/>
62
	</path>
490 rajveer 63
 
64
	<!-- ==================== Clean Target ==================================== -->
65
 
66
	<!--
67
	  The "clean" target deletes any previous "build" and "dist" directory,
68
	  so that you can be ensured the application can be built from scratch.
69
	-->
70
	<target name="clean" description="Delete old build and dist directories">
71
		<delete dir="${dist.home}"/>
72
		<delete dir="${build.home}"/>
73
	</target>
74
 
75
	<!-- ==================== Init Target ================================== -->
76
 
77
	<!--
78
 
79
	  The "init" target is used to create the "build" destination directory,
80
	  Normally, this task is executed indirectly when needed.
81
 
82
	-->
734 chandransh 83
	<target name="init" description="Create build directory">
944 chandransh 84
 
490 rajveer 85
		<mkdir dir="${build.home}" />
86
 
87
	</target>
944 chandransh 88
 
490 rajveer 89
	<!-- ==================== Compile Target ================================== -->
90
 
91
	<!--
92
 
93
	  The "compile" target transforms source files (from your "src" directory)
94
	  into class files in the appropriate location in the build directory.
95
	  This example assumes that you will be including your classes in an
96
	  unpacked directory hierarchy under "/WEB-INF/classes".
97
 
98
	-->
99
	<target name="compile" depends="init" description="Compile Java sources">
100
		<mkdir dir="${build.home}/WEB-INF/classes" />
101
		<mkdir dir="${build.home}/WEB-INF/lib" />
102
		<javac srcdir="${source.home}"
103
				destdir="${build.home}/WEB-INF/classes"
104
				debug="${compile.debug}"
105
				deprecation="${compile.deprecation}"
106
				optimize="${compile.optimize}"
107
			     source="1.6" target="1.6">
944 chandransh 108
			<classpath refid="Support.classpath"/>
490 rajveer 109
		</javac>
110
		<javac srcdir="${conf.home}"
111
						destdir="${build.home}/WEB-INF/classes"
112
						debug="${compile.debug}"
113
						deprecation="${compile.deprecation}"
114
						optimize="${compile.optimize}"
115
					     source="1.6" target="1.6">
944 chandransh 116
			<classpath refid="Support.classpath"/>
490 rajveer 117
		</javac>
118
 
119
	</target>
944 chandransh 120
 
490 rajveer 121
	<!-- ==================== Build Target ================================== -->
122
 
123
	<!--
124
 
125
	  The "build" target copies all non class files to build directory
126
 
127
	-->
944 chandransh 128
 
490 rajveer 129
	<target name="build" depends="compile" description="Copies all non Java classes to build directoy">
130
		<copy todir="${build.home}">
131
			<fileset dir="${webapp.home}" excludes="CVS,**/*.class" />
132
		</copy>
133
		<copy todir="${build.home}/WEB-INF/classes">
134
			<fileset dir="${conf.home}" excludes="CVS,**/*.java" />
135
		</copy>
136
 
137
		<copy todir="${build.home}/WEB-INF/lib">
138
			<filelist refid="Support.libs"/>
139
			<mapper type="flatten"/>
944 chandransh 140
 
490 rajveer 141
		</copy>
142
	</target>
944 chandransh 143
 
490 rajveer 144
	<!-- ==================== Archive Target ================================== -->
145
 
146
	<!--
147
 
148
	  The "archive" target create a binary archive of all files in build.home
149
 
150
	-->
151
 
152
	<target name="archive" depends="build" description="Create binary archive of all files in dist.home">
944 chandransh 153
 
154
 
490 rajveer 155
		<!-- Create application WAR file -->
944 chandransh 156
		<jar jarfile="${lib.home}/${app.name}.war"
490 rajveer 157
				basedir="${build.home}" />
158
 
944 chandransh 159
	</target>
160
 
161
 
162
 
163
 
490 rajveer 164
</project>
165