Subversion Repositories SmartDukaan

Rev

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