Subversion Repositories SmartDukaan

Rev

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

Rev 1084 Rev 1085
Line 1... Line 1...
1
<?xml version="1.0"?>
1
<?xml version="1.0"?>
2
<project default="compress" basedir=".">
2
<project default="compress" basedir=".">
3
 
-
 
4
	<property name="message" 
-
 
5
		value="Building the ContentCreation.war"/>
-
 
6
 
-
 
7
	<property name="localmessage" 
-
 
8
		value="Building and Deploying the ContentCreation.war"/>
-
 
9
	<property name="compilemessage" 
-
 
10
			value="Compiling ContentCreation.war"/>
-
 
11
 
-
 
12
	<property name="thirdparty.location" value="../lib"/>
3
	<property name="thirdparty.location" value="../lib"/>
-
 
4
	<property name="build.home" value="build"/>
13
 
5
 
14
	<path id="thirdparty.classpath">
6
	<filelist id="apache.libs" dir="${basedir}/${thirdparty.location}/readonly/apache">
15
		<pathelement location="build/classes"/>
7
		<file name="commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
16
		<pathelement location="${thirdparty.location}/readonly/apache/commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
8
		<file name="commons-digester-2.0/commons-digester-2.0.jar"/>
17
		<pathelement location="${thirdparty.location}/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"/>
9
		<file name="commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"/>
18
		<pathelement location="${thirdparty.location}/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar"/>
10
		<file name="commons-io-1.3.2/commons-io-1.3.2.jar"/>
19
		<pathelement location="${thirdparty.location}/readonly/apache/commons-lang-2.4/commons-lang-2.4.jar"/>
11
		<file name="commons-lang-2.4/commons-lang-2.4.jar"/>
20
		<pathelement location="${thirdparty.location}/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
12
		<file name="commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
21
		<pathelement location="${thirdparty.location}/readonly/apache/commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
13
		<file name="commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
22
		<pathelement location="${thirdparty.location}/readonly/apache/commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
14
		<file name="commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
23
		<pathelement location="${thirdparty.location}/readonly/apache/jsp-2.1/jsp-api.jar"/>
15
		<file name="ezmorph/ezmorph-1.0.3.jar"/>
24
		<pathelement location="${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
16
		<file name="json/json-lib-2.1-jdk15.jar"/>
-
 
17
		<file name="jsp-2.1/jsp-api.jar"/>
-
 
18
		<file name="ognl/ognl-2.7.3.jar"/>
25
		<pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
19
		<file name="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
26
		<pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
20
		<file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
27
		<pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
21
		<file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
28
		<pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar"/>
22
		<file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
29
		<pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar"/>
23
		<file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
-
 
24
		<file name="thrift-0.2.0/libthrift.jar"/>
30
		<pathelement location="${thirdparty.location}/readonly/apache/tomcat-juli/tomcat-juli.jar"/>
25
		<file name="tomcat-juli/tomcat-juli.jar"/>
31
		<pathelement location="${thirdparty.location}/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar"/>
26
		<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
32
		<pathelement location="${thirdparty.location}/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar"/>
27
		<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
33
		<pathelement location="${thirdparty.location}/readonly/freemarker/freemarker-2.3.15.jar"/>
28
		<file name="xalan-j_2_7_1/serializer.jar"/>
34
		<pathelement location="${thirdparty.location}/readonly/apache/ezmorph/ezmorph-1.0.3.jar"/>
29
		<file name="xalan-j_2_7_1/xalan.jar"/>
35
		<pathelement location="${thirdparty.location}/readonly/apache/json/json-lib-2.1-jdk15.jar"/>
30
		<file name="xalan-j_2_7_1/xercesImpl.jar"/>
36
		<pathelement location="${thirdparty.location}/readonly/apache/ognl/ognl-2.7.3.jar"/>
31
		<file name="xalan-j_2_7_1/xml-apis.jar"/>
37
		<pathelement location="${thirdparty.location}/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar"/>
32
		<file name="xalan-j_2_7_1/xsltc.jar"/>
38
		<pathelement location="${thirdparty.location}/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar"/>
33
		<file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
-
 
34
	</filelist>
-
 
35
	
39
		<pathelement location="${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
36
	<filelist id="other.libs" dir="${basedir}/${thirdparty.location}">
40
		<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
37
		<file name="readonly/bdb/je-4.1.7.jar"/>
41
		<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
38
		<file name="readonly/freemarker/freemarker-2.3.15.jar"/>
42
		<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
39
		<file name="readonly/slf4j/slf4j-api-1.5.8.jar"/>
43
		<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/serializer.jar"/>
40
		<file name="readonly/slf4j/slf4j-simple-1.5.8.jar"/>
44
		<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xalan.jar"/>
41
		<file name="ContentStore.jar"/>
45
		<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xercesImpl.jar"/>
-
 
46
		<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xml-apis.jar"/>
-
 
47
		<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xsltc.jar"/>
42
		<file name="Common.jar"/>
48
		<pathelement location="${thirdparty.location}/readonly/bdb/je-4.1.7.jar"/>
43
		<file name="ThriftConfig.jar"/>
-
 
44
	</filelist>
49
 
45
 
50
		<pathelement location="${thirdparty.location}/ContentStore.jar"/>
46
	<path id="ContentCreation.classpath">
51
		<pathelement location="${thirdparty.location}/Common.jar"/>
47
		<pathelement location="${build.home}/classes"/>
-
 
48
		<filelist refid="apache.libs"/>
-
 
49
		<filelist refid="other.libs"/>
52
		<pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
50
		<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
53
	</path>
51
	</path>
54
	
52
	
55
	<target name="clean">
53
	<target name="clean">
56
		<delete dir="build"/>
54
		<delete dir="build"/>
57
	</target>
55
	</target>
Line 59... Line 57...
59
	<target name="init" depends="clean">
57
	<target name="init" depends="clean">
60
		<mkdir dir="build"/>
58
		<mkdir dir="build"/>
61
		<mkdir dir="build/WEB-INF"/>
59
		<mkdir dir="build/WEB-INF"/>
62
		<mkdir dir="build/WEB-INF/lib"/>
60
		<mkdir dir="build/WEB-INF/lib"/>
63
		<mkdir dir="build/WEB-INF/classes"/>
61
		<mkdir dir="build/WEB-INF/classes"/>
64
		<mkdir dir="build/WEB-INF/content"/>
-
 
65
	</target>
62
	</target>
66
	
63
	
67
	<target name="compile" depends="init">
64
	<target name="compile" depends="init">
68
		<javac srcdir="src/main/java"
65
		<javac srcdir="src/main/java"
69
			destdir="build/WEB-INF/classes"
66
			destdir="build/WEB-INF/classes"
70
			deprecation="${compile.deprecation}"
67
			deprecation="${compile.deprecation}"
71
			optimize="${compile.optimize}"
68
			optimize="${compile.optimize}"
72
		    source="1.6" target="1.6">
69
		    source="1.6" target="1.6">
73
			<classpath refid="thirdparty.classpath"/>
70
			<classpath refid="ContentCreation.classpath"/>
74
		</javac>
71
		</javac>
75
	</target>
72
	</target>
76
 
73
 
77
	<target name="compress" depends="compile">
74
	<target name="compress" depends="compile">
78
		<copy todir="build">
75
		<copy todir="${build.home}">
79
			<fileset dir="src/main/webapp"/>
76
			<fileset dir="src/main/webapp"/>
80
		</copy>
77
		</copy>
81
 
78
 
82
		<copy todir="build/WEB-INF/classes">
79
		<copy todir="${build.home}/WEB-INF/classes">
83
			<fileset dir="src/main/resources"/>
80
			<fileset dir="src/main/resources"/>
84
		</copy>
81
		</copy>
85
 
82
 
86
		<copy file="../lib/readonly/apache/commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"
-
 
87
        	tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
-
 
88
 
-
 
89
		<copy file="../lib/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar" 
-
 
90
            tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>
-
 
91
 
-
 
92
		<copy file="../lib/readonly/apache/ognl/ognl-2.7.3.jar" 
-
 
93
            tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>
-
 
94
 
-
 
95
		<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar" 
-
 
96
            tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>
-
 
97
 
-
 
98
		<copy file="../lib/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar" 
-
 
99
            tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>
-
 
100
 
-
 
101
		<copy file="../lib/readonly/apache/commons-collections-3.2/commons-collections-3.2.jar" 
-
 
102
            tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>
-
 
103
 
-
 
104
		<copy file="../lib/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar" 
-
 
105
            tofile="build/WEB-INF/lib/commons-logging-1.0.4.jar"/>
-
 
106
 
-
 
107
		<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar" 
-
 
108
            tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>
-
 
109
 
-
 
110
		<copy file="../lib/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar" 
-
 
111
            tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>
-
 
112
 
-
 
113
		<copy file="../lib/readonly/apache/ezmorph/ezmorph-1.0.3.jar" 
-
 
114
            tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>
-
 
115
 
-
 
116
		<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar" 
-
 
117
            tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>
-
 
118
 
-
 
119
		<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar" 
-
 
120
		            tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>
-
 
121
 
-
 
122
		<copy file="../lib/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar" 
-
 
123
            tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
-
 
124
 
-
 
125
		<copy file="../lib/readonly/freemarker/freemarker-2.3.15.jar" 
-
 
126
            tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>
-
 
127
 
-
 
128
		<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar" 
-
 
129
            tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>
-
 
130
 
-
 
131
		<copy file="../lib/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar" 
-
 
132
            tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>
-
 
133
 
-
 
134
		<copy file="../lib/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar" 
-
 
135
            tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>
-
 
136
 
-
 
137
		<copy file="../lib/readonly/apache/json/json-lib-2.1-jdk15.jar" 
-
 
138
		            tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>
-
 
139
 
-
 
140
		<copy file="../lib/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar" 
-
 
141
            tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>
-
 
142
 
-
 
143
		<copy file="../lib/readonly/apache/thrift-0.2.0/libthrift.jar" 
-
 
144
		            tofile="build/WEB-INF/lib/libthrift.jar"/>
-
 
145
 
-
 
146
		<copy file="../lib/readonly/slf4j/slf4j-api-1.5.8.jar" 
-
 
147
				            tofile="build/WEB-INF/lib/slf4j-api-1.5.8.jar"/>
-
 
148
 
-
 
149
		<copy file="../lib/readonly/slf4j/slf4j-simple-1.5.8.jar" 
-
 
150
						            tofile="build/WEB-INF/lib/slf4j-simple-1.5.8.jar"/>
-
 
151
		<copy file="../lib/readonly/jython/jython.jar" 
-
 
152
						tofile="build/WEB-INF/lib/jython.jar"/>
83
		<copy todir="${build.home}/WEB-INF/lib">
153
 
-
 
154
		<copy file="../lib/readonly/bdb/je-4.1.7.jar"
84
			<filelist refid="apache.libs"/>
155
			tofile="build/WEB-INF/lib/je-4.1.7.jar"/>
85
			<filelist refid="other.libs"/>
156
 
-
 
157
		<copy file="../lib/readonly/apache/xalan-j_2_7_1/serializer.jar" tofile="build/WEB-INF/lib/serializer.jar"/>
-
 
158
		<copy file="../lib/readonly/apache/xalan-j_2_7_1/xalan.jar" tofile="build/WEB-INF/lib/xalan.jar"/>
-
 
159
		<copy file="../lib/readonly/apache/xalan-j_2_7_1/xercesImpl.jar" tofile="build/WEB-INF/lib/xercesImpl.jar"/>
-
 
160
		<copy file="../lib/readonly/apache/xalan-j_2_7_1/xml-apis.jar" tofile="build/WEB-INF/lib/xml-apis.jar"/>
-
 
161
		<copy file="../lib/readonly/apache/xalan-j_2_7_1/xsltc.jar" tofile="build/WEB-INF/lib/xsltc.jar"/>
-
 
162
 
-
 
163
		<copy file="../lib/ContentStore.jar" 
86
			<mapper type="flatten"/>
164
			tofile="build/WEB-INF/lib/ContentStore.jar"/>
-
 
165
 
-
 
166
		<copy file="../lib/Common.jar" 
87
		</copy>
167
					tofile="build/WEB-INF/lib/Common.jar"/>
-
 
168
 
88
		
169
		<copy file="../lib/ThriftConfig.jar" 
-
 
170
							tofile="build/WEB-INF/lib/ThriftConfig.jar"/>
89
		<copy todir="${build.home}/WEB-INF/lib" file="../lib/readonly/jython/jython.jar"/>
171
 
90
 
172
		<war 
-
 
173
			destfile="ContentCreation.war" 
91
		<war destfile="ContentCreation.war" basedir="build"/>
174
			basedir="build"/>
-
 
175
 
92
 
176
		<copy file="ContentCreation.war" 
-
 
177
			tofile="../lib/ContentCreation.war"/>
93
		<copy file="ContentCreation.war" tofile="../lib/ContentCreation.war"/>
178
 
94
 
179
	</target>
95
	</target>
180
 
96
 
181
 
97
 
182
</project>
98
</project>