| 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"/>
|
| 1024 |
chandransh |
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"/>
|
| 944 |
chandransh |
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"/>
|
| 1024 |
chandransh |
42 |
<file name="tomcat-juli/tomcat-juli.jar"/>
|
| 944 |
chandransh |
43 |
<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
|
|
|
44 |
<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
|
| 1024 |
chandransh |
45 |
<file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
|
| 944 |
chandransh |
46 |
</filelist>
|
| 490 |
rajveer |
47 |
|
| 944 |
chandransh |
48 |
<filelist id="Support.libs" dir="${basedir}/${thirdparty.location}">
|
| 1024 |
chandransh |
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"/>
|
| 944 |
chandransh |
52 |
<file name="readonly/iText/iText-5.0.4.jar"/>
|
|
|
53 |
<file name="Common.jar"/>
|
|
|
54 |
<file name="ThriftConfig.jar"/>
|
|
|
55 |
</filelist>
|
|
|
56 |
|
| 604 |
chandransh |
57 |
<path id="Support.classpath">
|
|
|
58 |
<pathelement location="build/classes"/>
|
| 944 |
chandransh |
59 |
<filelist refid="apache.libs"/>
|
|
|
60 |
<filelist refid="Support.libs"/>
|
| 971 |
chandransh |
61 |
<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
|
| 944 |
chandransh |
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">
|
| 945 |
chandransh |
138 |
<filelist refid="apache.libs"/>
|
| 490 |
rajveer |
139 |
<filelist refid="Support.libs"/>
|
|
|
140 |
<mapper type="flatten"/>
|
| 944 |
chandransh |
141 |
|
| 490 |
rajveer |
142 |
</copy>
|
|
|
143 |
</target>
|
| 944 |
chandransh |
144 |
|
| 490 |
rajveer |
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">
|
| 944 |
chandransh |
154 |
|
|
|
155 |
|
| 490 |
rajveer |
156 |
<!-- Create application WAR file -->
|
| 944 |
chandransh |
157 |
<jar jarfile="${lib.home}/${app.name}.war"
|
| 490 |
rajveer |
158 |
basedir="${build.home}" />
|
|
|
159 |
|
| 944 |
chandransh |
160 |
</target>
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
| 490 |
rajveer |
165 |
</project>
|
|
|
166 |
|