Subversion Repositories SmartDukaan

Rev

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

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