Subversion Repositories SmartDukaan

Rev

Rev 1068 | Rev 1082 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
162 naveen 1
<?xml version="1.0"?>
2
<project default="main">
3
 
4
	<property name="message" 
315 rajveer 5
		value="Building the ContentCreation.war"/>
6
 
7
	<property name="localmessage" 
162 naveen 8
		value="Building and Deploying the ContentCreation.war"/>
328 ashish 9
	<property name="compilemessage" 
10
			value="Compiling ContentCreation.war"/>
162 naveen 11
 
328 ashish 12
	<property name="thirdparty.location" value="../lib"/>
13
 
14
		    <path id="thirdparty.classpath">
15
		        <pathelement location="build/classes"/>
16
		        <pathelement location="${thirdparty.location}/readonly/apache/commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
17
		        <pathelement location="${thirdparty.location}/readonly/apache/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"/>
19
		        <pathelement location="${thirdparty.location}/readonly/apache/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"/>
21
		        <pathelement location="${thirdparty.location}/readonly/apache/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"/>
23
		        <pathelement location="${thirdparty.location}/readonly/apache/jsp-2.1/jsp-api.jar"/>
24
		        <pathelement location="${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
25
		        <pathelement location="${thirdparty.location}/readonly/apache/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"/>
27
		        <pathelement location="${thirdparty.location}/readonly/apache/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"/>
29
		        <pathelement location="${thirdparty.location}/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar"/>
30
		        <pathelement location="${thirdparty.location}/readonly/apache/tomcat-juli/tomcat-juli.jar"/>
31
		        <pathelement location="${thirdparty.location}/readonly/apache/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"/>
33
		        <pathelement location="${thirdparty.location}/readonly/freemarker/freemarker-2.3.15.jar"/>
34
		        <pathelement location="${thirdparty.location}/readonly/apache/ezmorph/ezmorph-1.0.3.jar"/>
35
		        <pathelement location="${thirdparty.location}/readonly/apache/json/json-lib-2.1-jdk15.jar"/>
36
		        <pathelement location="${thirdparty.location}/readonly/apache/ognl/ognl-2.7.3.jar"/>
37
		        <pathelement location="${thirdparty.location}/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar"/>
38
		        <pathelement location="${thirdparty.location}/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar"/>
332 ashish 39
		    	<pathelement location="${thirdparty.location}/readonly/apache/thrift-0.2.0/libthrift.jar"/>
40
		    	<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-api-1.5.8.jar"/>
41
		    	<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
403 rajveer 42
		    	<pathelement location="${thirdparty.location}/readonly/slf4j/slf4j-simple-1.5.8.jar"/>
43
		    	<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/serializer.jar"/>
44
		    	<pathelement location="${thirdparty.location}/readonly/apache/xalan-j_2_7_1/xalan.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"/>
1051 rajveer 48
		    	<pathelement location="${thirdparty.location}/readonly/bdb/je-4.1.7.jar"/>
403 rajveer 49
 
725 chandransh 50
			<pathelement location="${thirdparty.location}/ContentStore.jar"/>
51
			<pathelement location="${thirdparty.location}/Common.jar"/>
52
			<pathelement location="${thirdparty.location}/ThriftConfig.jar"/>
328 ashish 53
    </path>
54
 
55
 
56
	<target name="main" depends="clean, compile, compress">
162 naveen 57
		<echo>
58
			${message}
59
		</echo>
60
	</target>
328 ashish 61
	<target name="compile" depends="clean">
315 rajveer 62
		<echo>
328 ashish 63
			${compilemessage}
64
		</echo>
65
		<mkdir dir="bin"/>
1081 chandransh 66
		<javac srcdir="src/main/java"
67
			destdir="bin"
68
			deprecation="${compile.deprecation}"
69
			optimize="${compile.optimize}"
70
		    source="1.6" target="1.6">
328 ashish 71
			<classpath refid="thirdparty.classpath"/>			
72
		</javac>
73
	</target>
74
	<target name="local" depends="clean, compile, compress">
75
		<echo>
315 rajveer 76
			${localmessage}
77
		</echo>
78
	</target>
79
 
80
	<target name="clean">
162 naveen 81
		<delete dir="build"/>
328 ashish 82
		<delete dir="bin"/>
162 naveen 83
	</target>	
84
 
85
	<target name="compress">
86
		<mkdir dir="build"/>
87
		<mkdir dir="build/WEB-INF"/>
88
		<mkdir dir="build/WEB-INF/lib"/>
89
		<mkdir dir="build/WEB-INF/classes"/>
90
		<mkdir dir="build/WEB-INF/content"/>
91
 
92
		<copy file="src/xml/config/web.xml" tofile="build/WEB-INF/web.xml"/>
93
 
94
		<copy file="src/xml/config/struts.xml" 
95
			tofile="build/WEB-INF/classes/struts.xml"/>
96
 
97
        <copy file="src/jsp/index.jsp" tofile="build/index.jsp"/>
98
 
99
		<copy todir="build/WEB-INF/content">
100
			<fileset dir="src/velocity"/>
101
		</copy>
102
 
103
        <copy todir="build/jquery">
104
            <fileset dir="src/jquery"/>
105
        </copy>
106
 
1068 rajveer 107
        <copy todir="build/css">
108
            <fileset dir="src/css"/>
109
        </copy>
110
 
111
        <copy todir="build/js">
112
            <fileset dir="src/js"/>
113
        </copy>
114
 
315 rajveer 115
        <copy file="../lib/readonly/apache/commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"
116
        	tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
162 naveen 117
 
315 rajveer 118
        <copy file="../lib/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar" 
162 naveen 119
            tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>
120
 
315 rajveer 121
        <copy file="../lib/readonly/apache/ognl/ognl-2.7.3.jar" 
162 naveen 122
            tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>
123
 
315 rajveer 124
        <copy file="../lib/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar" 
162 naveen 125
            tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>
126
 
315 rajveer 127
        <copy file="../lib/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar" 
162 naveen 128
            tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>
129
 
315 rajveer 130
        <copy file="../lib/readonly/apache/commons-collections-3.2/commons-collections-3.2.jar" 
162 naveen 131
            tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>
132
 
315 rajveer 133
        <copy file="../lib/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar" 
134
            tofile="build/WEB-INF/lib/commons-logging-1.0.4.jar"/>
162 naveen 135
 
315 rajveer 136
        <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar" 
162 naveen 137
            tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>
138
 
315 rajveer 139
        <copy file="../lib/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar" 
162 naveen 140
            tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>
141
 
315 rajveer 142
        <copy file="../lib/readonly/apache/ezmorph/ezmorph-1.0.3.jar" 
162 naveen 143
            tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>
144
 
315 rajveer 145
        <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar" 
162 naveen 146
            tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>
147
 
315 rajveer 148
		<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar" 
149
		            tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>
150
 
151
        <copy file="../lib/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar" 
162 naveen 152
            tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
153
 
315 rajveer 154
        <copy file="../lib/readonly/freemarker/freemarker-2.3.15.jar" 
162 naveen 155
            tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>
156
 
315 rajveer 157
        <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar" 
162 naveen 158
            tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>
159
 
315 rajveer 160
        <copy file="../lib/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar" 
162 naveen 161
            tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>
343 ashish 162
 
315 rajveer 163
        <copy file="../lib/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar" 
162 naveen 164
            tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>
165
 
315 rajveer 166
		<copy file="../lib/readonly/apache/json/json-lib-2.1-jdk15.jar" 
167
		            tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>
168
 
169
        <copy file="../lib/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar" 
162 naveen 170
            tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>
332 ashish 171
 
172
		<copy file="../lib/readonly/apache/thrift-0.2.0/libthrift.jar" 
173
		            tofile="build/WEB-INF/lib/libthrift.jar"/>
174
 
175
		<copy file="../lib/readonly/slf4j/slf4j-api-1.5.8.jar" 
176
				            tofile="build/WEB-INF/lib/slf4j-api-1.5.8.jar"/>
177
 
178
		<copy file="../lib/readonly/slf4j/slf4j-simple-1.5.8.jar" 
179
						            tofile="build/WEB-INF/lib/slf4j-simple-1.5.8.jar"/>
343 ashish 180
		<copy file="../lib/readonly/jython/jython.jar" 
181
						tofile="build/WEB-INF/lib/jython.jar"/>
332 ashish 182
 
1051 rajveer 183
		<copy file="../lib/readonly/bdb/je-4.1.7.jar"
184
			tofile="build/WEB-INF/lib/je-4.1.7.jar"/>
185
 
403 rajveer 186
		    	<copy file="../lib/readonly/apache/xalan-j_2_7_1/serializer.jar" tofile="build/WEB-INF/lib/serializer.jar"/>
187
		    	<copy file="../lib/readonly/apache/xalan-j_2_7_1/xalan.jar" tofile="build/WEB-INF/lib/xalan.jar"/>
188
		    	<copy file="../lib/readonly/apache/xalan-j_2_7_1/xercesImpl.jar" tofile="build/WEB-INF/lib/xercesImpl.jar"/>
189
		    	<copy file="../lib/readonly/apache/xalan-j_2_7_1/xml-apis.jar" tofile="build/WEB-INF/lib/xml-apis.jar"/>
190
		    	<copy file="../lib/readonly/apache/xalan-j_2_7_1/xsltc.jar" tofile="build/WEB-INF/lib/xsltc.jar"/>
191
 
192
 
162 naveen 193
		<copy todir="build/WEB-INF/classes">
194
			<fileset dir="bin">
195
				<include name="**/*.class"/>
196
			</fileset>
197
		</copy>
198
 
332 ashish 199
        <copy file="../lib/ContentStore.jar" 
200
			tofile="build/WEB-INF/lib/ContentStore.jar"/>
162 naveen 201
 
332 ashish 202
		<copy file="../lib/Common.jar" 
203
					tofile="build/WEB-INF/lib/Common.jar"/>
204
 
205
		<copy file="../lib/ThriftConfig.jar" 
206
							tofile="build/WEB-INF/lib/ThriftConfig.jar"/>
207
 
162 naveen 208
		<war 
209
			destfile="ContentCreation.war" 
210
			basedir="build"/>
315 rajveer 211
 
332 ashish 212
		<copy file="ContentCreation.war" 
315 rajveer 213
			tofile="../lib/ContentCreation.war"/>
162 naveen 214
 
315 rajveer 215
        </target>
216
 
328 ashish 217
 
337 ashish 218
</project>