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