Subversion Repositories SmartDukaan

Rev

Rev 734 | Rev 945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 734 Rev 944
Line 8... Line 8...
8
     
8
     
9
     Author:   Rajveer Singh
9
     Author:   Rajveer Singh
10
     ====================================================================== -->
10
     ====================================================================== -->
11
 
11
 
12
 
12
 
13
	
13
 
14
<project name="Support" default="archive" basedir=".">
14
<project name="Support" default="archive" basedir=".">
15
	
15
 
16
    <description>
16
	<description>
17
           Shop2020 Support
17
           Shop2020 Support
18
    </description>
18
    </description>
19
	
19
 
20
	<property file="build.properties"/>
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="sevlet-2.5/servlet-api.jar"/>
-
 
37
		<file name="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
-
 
38
		<file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
-
 
39
		<file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
-
 
40
		<file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
-
 
41
		<file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
-
 
42
		<file name="thrift-0.2.0/libthrift.jar"/>
-
 
43
		<file name="tomcat-juli/tomcat-juli.jar"/>
-
 
44
		<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
-
 
45
		<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
-
 
46
		<file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
-
 
47
	</filelist>
21
    
48
	
-
 
49
	<filelist id="Support.libs" dir="${basedir}/${thirdparty.location}">
-
 
50
		<file name="readonly/freemarker/freemarker-2.3.15.jar"/>
22
	<path id="Web App Libraries.libraryclasspath"/>
51
		<file name="readonly/slf4j/slf4j-api-1.5.8.jar"/>
-
 
52
		<file name="readonly/slf4j/slf4j-simple-1.5.8.jar"/>
23
	<path id="EAR Libraries.libraryclasspath"/>
53
		<file name="readonly/iText/iText-5.0.4.jar"/>
-
 
54
		<file name="Common.jar"/>
-
 
55
		<file name="ThriftConfig.jar"/>
-
 
56
	</filelist>
-
 
57
 
24
	<path id="Support.classpath">
58
	<path id="Support.classpath">
25
		<pathelement location="build/classes"/>
59
		<pathelement location="build/classes"/>
26
	        <path refid="Web App Libraries.libraryclasspath"/>
-
 
27
	        <path refid="EAR Libraries.libraryclasspath"/>
60
		<filelist refid="apache.libs"/>
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"/>
-
 
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"/>
-
 
58
	    </path>
-
 
59
            
-
 
60
            <property name="support.classpath" refid="Support.classpath"/>	
-
 
61
	<filelist id="Support.libs">
61
		<filelist refid="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"/>
-
 
85
			<file name="${thirdparty.location}/readonly/apache/poi-3.7/poi-3.7-20101029.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"/>
-
 
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>
62
	</path>
92
	
63
	
93
	<!-- ==================== Clean Target ==================================== -->
64
	<!-- ==================== Clean Target ==================================== -->
94
 
65
 
95
	<!--
66
	<!--
96
	  The "clean" target deletes any previous "build" and "dist" directory,
67
	  The "clean" target deletes any previous "build" and "dist" directory,
Line 108... Line 79...
108
	  The "init" target is used to create the "build" destination directory,
79
	  The "init" target is used to create the "build" destination directory,
109
	  Normally, this task is executed indirectly when needed.
80
	  Normally, this task is executed indirectly when needed.
110
 
81
 
111
	-->
82
	-->
112
	<target name="init" description="Create build directory">
83
	<target name="init" description="Create build directory">
113
		
84
 
114
		<mkdir dir="${build.home}" />
85
		<mkdir dir="${build.home}" />
115
 
86
 
116
	</target>
87
	</target>
117
	
88
 
118
	<!-- ==================== Compile Target ================================== -->
89
	<!-- ==================== Compile Target ================================== -->
119
 
90
 
120
	<!--
91
	<!--
121
 
92
 
122
	  The "compile" target transforms source files (from your "src" directory)
93
	  The "compile" target transforms source files (from your "src" directory)
Line 132... Line 103...
132
				destdir="${build.home}/WEB-INF/classes"
103
				destdir="${build.home}/WEB-INF/classes"
133
				debug="${compile.debug}"
104
				debug="${compile.debug}"
134
				deprecation="${compile.deprecation}"
105
				deprecation="${compile.deprecation}"
135
				optimize="${compile.optimize}"
106
				optimize="${compile.optimize}"
136
			     source="1.6" target="1.6">
107
			     source="1.6" target="1.6">
137
			<classpath refid="Support.classpath"/>			
108
			<classpath refid="Support.classpath"/>
138
		</javac>
109
		</javac>
139
		<javac srcdir="${conf.home}"
110
		<javac srcdir="${conf.home}"
140
						destdir="${build.home}/WEB-INF/classes"
111
						destdir="${build.home}/WEB-INF/classes"
141
						debug="${compile.debug}"
112
						debug="${compile.debug}"
142
						deprecation="${compile.deprecation}"
113
						deprecation="${compile.deprecation}"
143
						optimize="${compile.optimize}"
114
						optimize="${compile.optimize}"
144
					     source="1.6" target="1.6">
115
					     source="1.6" target="1.6">
145
			<classpath refid="Support.classpath"/>			
116
			<classpath refid="Support.classpath"/>
146
		</javac>
117
		</javac>
147
 
118
 
148
	</target>
119
	</target>
149
	
120
 
150
	<!-- ==================== Build Target ================================== -->
121
	<!-- ==================== Build Target ================================== -->
151
 
122
 
152
	<!--
123
	<!--
153
 
124
 
154
	  The "build" target copies all non class files to build directory
125
	  The "build" target copies all non class files to build directory
155
 
126
 
156
	-->
127
	-->
157
	
128
 
158
	<target name="build" depends="compile" description="Copies all non Java classes to build directoy">
129
	<target name="build" depends="compile" description="Copies all non Java classes to build directoy">
159
		<copy todir="${build.home}">
130
		<copy todir="${build.home}">
160
			<fileset dir="${webapp.home}" excludes="CVS,**/*.class" />
131
			<fileset dir="${webapp.home}" excludes="CVS,**/*.class" />
161
		</copy>
132
		</copy>
162
		<copy todir="${build.home}/WEB-INF/classes">
133
		<copy todir="${build.home}/WEB-INF/classes">
Line 164... Line 135...
164
		</copy>
135
		</copy>
165
 
136
 
166
		<copy todir="${build.home}/WEB-INF/lib">
137
		<copy todir="${build.home}/WEB-INF/lib">
167
			<filelist refid="Support.libs"/>
138
			<filelist refid="Support.libs"/>
168
			<mapper type="flatten"/>
139
			<mapper type="flatten"/>
169
				
140
 
170
		</copy>
141
		</copy>
171
	</target>
142
	</target>
172
	
143
 
173
	<!-- ==================== Archive Target ================================== -->
144
	<!-- ==================== Archive Target ================================== -->
174
 
145
 
175
	<!--
146
	<!--
176
 
147
 
177
	  The "archive" target create a binary archive of all files in build.home
148
	  The "archive" target create a binary archive of all files in build.home
178
 
149
 
179
	-->
150
	-->
180
 
151
 
181
	<target name="archive" depends="build" description="Create binary archive of all files in dist.home">
152
	<target name="archive" depends="build" description="Create binary archive of all files in dist.home">
182
		
153
 
183
				
154
 
184
		<!-- Create application WAR file -->
155
		<!-- Create application WAR file -->
185
	    <jar jarfile="${lib.home}/${app.name}.war"
156
		<jar jarfile="${lib.home}/${app.name}.war"
186
				basedir="${build.home}" />
157
				basedir="${build.home}" />
187
 
158
 
188
	</target>	
159
	</target>
189
	
160
 
190
	
161
 
191
  
162
 
192
	
163
 
193
</project>
164
</project>
194
 
165