| 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="poi-3.7/poi-3.7-20101029.jar"/>
|
|
|
25 |
<file name="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
|
|
|
26 |
<file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
|
|
|
27 |
<file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
|
|
|
28 |
<file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
|
|
|
29 |
<file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
|
|
|
30 |
<file name="thrift-0.2.0/libthrift.jar"/>
|
|
|
31 |
<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
|
|
|
32 |
<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
|
|
|
33 |
</filelist>
|
| 490 |
rajveer |
34 |
|
| 944 |
chandransh |
35 |
<filelist id="Support.libs" dir="${basedir}/${thirdparty.location}">
|
|
|
36 |
<file name="readonly/iText/iText-5.0.4.jar"/>
|
|
|
37 |
<file name="Common.jar"/>
|
|
|
38 |
<file name="ThriftConfig.jar"/>
|
|
|
39 |
</filelist>
|
|
|
40 |
|
| 604 |
chandransh |
41 |
<path id="Support.classpath">
|
|
|
42 |
<pathelement location="build/classes"/>
|
| 944 |
chandransh |
43 |
<filelist refid="apache.libs"/>
|
|
|
44 |
<filelist refid="Support.libs"/>
|
| 971 |
chandransh |
45 |
<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
|
| 944 |
chandransh |
46 |
</path>
|
| 490 |
rajveer |
47 |
|
|
|
48 |
<!-- ==================== Clean Target ==================================== -->
|
|
|
49 |
|
|
|
50 |
<!--
|
|
|
51 |
The "clean" target deletes any previous "build" and "dist" directory,
|
|
|
52 |
so that you can be ensured the application can be built from scratch.
|
|
|
53 |
-->
|
|
|
54 |
<target name="clean" description="Delete old build and dist directories">
|
|
|
55 |
<delete dir="${dist.home}"/>
|
|
|
56 |
<delete dir="${build.home}"/>
|
|
|
57 |
</target>
|
|
|
58 |
|
|
|
59 |
<!-- ==================== Init Target ================================== -->
|
|
|
60 |
|
|
|
61 |
<!--
|
|
|
62 |
|
|
|
63 |
The "init" target is used to create the "build" destination directory,
|
|
|
64 |
Normally, this task is executed indirectly when needed.
|
|
|
65 |
|
|
|
66 |
-->
|
| 734 |
chandransh |
67 |
<target name="init" description="Create build directory">
|
| 944 |
chandransh |
68 |
|
| 490 |
rajveer |
69 |
<mkdir dir="${build.home}" />
|
|
|
70 |
|
|
|
71 |
</target>
|
| 944 |
chandransh |
72 |
|
| 490 |
rajveer |
73 |
<!-- ==================== Compile Target ================================== -->
|
|
|
74 |
|
|
|
75 |
<!--
|
|
|
76 |
|
|
|
77 |
The "compile" target transforms source files (from your "src" directory)
|
|
|
78 |
into class files in the appropriate location in the build directory.
|
|
|
79 |
This example assumes that you will be including your classes in an
|
|
|
80 |
unpacked directory hierarchy under "/WEB-INF/classes".
|
|
|
81 |
|
|
|
82 |
-->
|
|
|
83 |
<target name="compile" depends="init" description="Compile Java sources">
|
|
|
84 |
<mkdir dir="${build.home}/WEB-INF/classes" />
|
|
|
85 |
<mkdir dir="${build.home}/WEB-INF/lib" />
|
|
|
86 |
<javac srcdir="${source.home}"
|
|
|
87 |
destdir="${build.home}/WEB-INF/classes"
|
|
|
88 |
debug="${compile.debug}"
|
|
|
89 |
deprecation="${compile.deprecation}"
|
|
|
90 |
optimize="${compile.optimize}"
|
|
|
91 |
source="1.6" target="1.6">
|
| 944 |
chandransh |
92 |
<classpath refid="Support.classpath"/>
|
| 490 |
rajveer |
93 |
</javac>
|
|
|
94 |
<javac srcdir="${conf.home}"
|
|
|
95 |
destdir="${build.home}/WEB-INF/classes"
|
|
|
96 |
debug="${compile.debug}"
|
|
|
97 |
deprecation="${compile.deprecation}"
|
|
|
98 |
optimize="${compile.optimize}"
|
|
|
99 |
source="1.6" target="1.6">
|
| 944 |
chandransh |
100 |
<classpath refid="Support.classpath"/>
|
| 490 |
rajveer |
101 |
</javac>
|
|
|
102 |
|
|
|
103 |
</target>
|
| 944 |
chandransh |
104 |
|
| 490 |
rajveer |
105 |
<!-- ==================== Build Target ================================== -->
|
|
|
106 |
|
|
|
107 |
<!--
|
|
|
108 |
|
|
|
109 |
The "build" target copies all non class files to build directory
|
|
|
110 |
|
|
|
111 |
-->
|
| 944 |
chandransh |
112 |
|
| 490 |
rajveer |
113 |
<target name="build" depends="compile" description="Copies all non Java classes to build directoy">
|
|
|
114 |
<copy todir="${build.home}">
|
|
|
115 |
<fileset dir="${webapp.home}" excludes="CVS,**/*.class" />
|
|
|
116 |
</copy>
|
|
|
117 |
<copy todir="${build.home}/WEB-INF/classes">
|
|
|
118 |
<fileset dir="${conf.home}" excludes="CVS,**/*.java" />
|
|
|
119 |
</copy>
|
|
|
120 |
|
|
|
121 |
<copy todir="${build.home}/WEB-INF/lib">
|
| 945 |
chandransh |
122 |
<filelist refid="apache.libs"/>
|
| 490 |
rajveer |
123 |
<filelist refid="Support.libs"/>
|
|
|
124 |
<mapper type="flatten"/>
|
| 944 |
chandransh |
125 |
|
| 490 |
rajveer |
126 |
</copy>
|
|
|
127 |
</target>
|
| 944 |
chandransh |
128 |
|
| 490 |
rajveer |
129 |
<!-- ==================== Archive Target ================================== -->
|
|
|
130 |
|
|
|
131 |
<!--
|
|
|
132 |
|
|
|
133 |
The "archive" target create a binary archive of all files in build.home
|
|
|
134 |
|
|
|
135 |
-->
|
|
|
136 |
|
|
|
137 |
<target name="archive" depends="build" description="Create binary archive of all files in dist.home">
|
| 944 |
chandransh |
138 |
|
|
|
139 |
|
| 490 |
rajveer |
140 |
<!-- Create application WAR file -->
|
| 944 |
chandransh |
141 |
<jar jarfile="${lib.home}/${app.name}.war"
|
| 490 |
rajveer |
142 |
basedir="${build.home}" />
|
|
|
143 |
|
| 944 |
chandransh |
144 |
</target>
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
| 490 |
rajveer |
149 |
</project>
|
|
|
150 |
|