Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14364 kshitij.so 1
<?xml version="1.0"?>
2
 
3
 
4
<!-- ====================================================================== 
5
     Date:     November 2010
6
 
7
     Project:  DtrApi
8
 
9
     Author:   Rajveer Singh
10
     ====================================================================== -->
11
 
12
 
13
 
14
<project name="DtrApi" default="archive" basedir=".">
15
 
16
	<description>
17
           Shop2020 DtrApi
18
    </description>
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="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
37
		<file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
38
		<file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
39
		<file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
40
		<file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
41
		<file name="thrift-0.2.0/libthrift.jar"/>
42
		<file name="tomcat-juli/tomcat-juli.jar"/>
43
		<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
44
		<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
45
		<file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
46
	</filelist>
47
 
48
	<filelist id="DtrApi.libs" dir="${basedir}/${thirdparty.location}">
49
		<file name="readonly/freemarker/freemarker-2.3.15.jar"/>
50
		<file name="readonly/slf4j/slf4j-api-1.5.8.jar"/>
51
		<file name="readonly/slf4j/slf4j-simple-1.5.8.jar"/>
52
		<file name="readonly/iText/iText-5.0.4.jar"/>
53
		<file name="Common.jar"/>
54
		<file name="ThriftConfig.jar"/>
55
	</filelist>
56
 
57
	<path id="DtrApi.classpath">
58
		<pathelement location="build/classes"/>
59
		<filelist refid="apache.libs"/>
60
		<filelist refid="DtrApi.libs"/>
61
		<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
62
	</path>
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
	-->
83
	<target name="init" description="Create build directory">
84
 
85
		<mkdir dir="${build.home}" />
86
 
87
	</target>
88
 
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">
108
			<classpath refid="DtrApi.classpath"/>
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">
116
			<classpath refid="DtrApi.classpath"/>
117
		</javac>
118
 
119
	</target>
120
 
121
	<!-- ==================== Build Target ================================== -->
122
 
123
	<!--
124
 
125
	  The "build" target copies all non class files to build directory
126
 
127
	-->
128
 
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="apache.libs"/>
139
			<filelist refid="DtrApi.libs"/>
140
			<mapper type="flatten"/>
141
 
142
		</copy>
143
	</target>
144
 
145
	<!-- ==================== Archive Target ================================== -->
146
 
147
	<!--
148
 
149
	  The "archive" target create a binary archive of all files in build.home
150
 
151
	-->
152
 
153
	<target name="archive" depends="build" description="Create binary archive of all files in dist.home">
154
 
155
 
156
		<!-- Create application WAR file -->
157
		<jar jarfile="${lib.home}/${app.name}.war"
158
				basedir="${build.home}" />
159
 
160
	</target>
161
 
162
 
163
 
164
 
165
</project>
166