Subversion Repositories SmartDukaan

Rev

Rev 1084 | Rev 1087 | 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"?>
1082 chandransh 2
<project default="compress" basedir=".">
328 ashish 3
	<property name="thirdparty.location" value="../lib"/>
1085 chandransh 4
	<property name="build.home" value="build"/>
403 rajveer 5
 
1085 chandransh 6
	<filelist id="apache.libs" dir="${basedir}/${thirdparty.location}/readonly/apache">
7
		<file name="commons-collections-3.2.1/commons-collections-3.2.1.jar"/>
8
		<file name="commons-digester-2.0/commons-digester-2.0.jar"/>
9
		<file name="commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"/>
10
		<file name="commons-io-1.3.2/commons-io-1.3.2.jar"/>
11
		<file name="commons-lang-2.4/commons-lang-2.4.jar"/>
12
		<file name="commons-logging-1.0.4/commons-logging-1.0.4.jar"/>
13
		<file name="commons-logging-api-1.1/commons-logging-api-1.1.jar"/>
14
		<file name="commons-validator-1.3.1/commons-validator-1.3.1.jar"/>
15
		<file name="ezmorph/ezmorph-1.0.3.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"/>
19
		<file name="struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"/>
20
		<file name="struts-2.1.8.1/struts2-core-2.1.8.1.jar"/>
21
		<file name="struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"/>
22
		<file name="struts-2.1.8.1/xstream-1.2.2.jar"/>
23
		<file name="struts-2.1.8.1/xwork-core-2.1.6.jar"/>
24
		<file name="thrift-0.2.0/libthrift.jar"/>
25
		<file name="tomcat-juli/tomcat-juli.jar"/>
26
		<file name="velocity-1.6.3/velocity-1.6.3.jar"/>
27
		<file name="velocity-1.6.3/velocity-tools-1.4.jar"/>
28
		<file name="xalan-j_2_7_1/serializer.jar"/>
29
		<file name="xalan-j_2_7_1/xalan.jar"/>
30
		<file name="xalan-j_2_7_1/xercesImpl.jar"/>
31
		<file name="xalan-j_2_7_1/xml-apis.jar"/>
32
		<file name="xalan-j_2_7_1/xsltc.jar"/>
33
		<file name="xpp/xpp3_min-1.1.3.4.O.jar"/>
34
	</filelist>
35
 
36
	<filelist id="other.libs" dir="${basedir}/${thirdparty.location}">
37
		<file name="readonly/bdb/je-4.1.7.jar"/>
38
		<file name="readonly/freemarker/freemarker-2.3.15.jar"/>
39
		<file name="readonly/slf4j/slf4j-api-1.5.8.jar"/>
40
		<file name="readonly/slf4j/slf4j-simple-1.5.8.jar"/>
41
		<file name="ContentStore.jar"/>
42
		<file name="Common.jar"/>
43
		<file name="ThriftConfig.jar"/>
44
	</filelist>
1082 chandransh 45
 
1085 chandransh 46
	<path id="ContentCreation.classpath">
47
		<pathelement location="${build.home}/classes"/>
48
		<filelist refid="apache.libs"/>
49
		<filelist refid="other.libs"/>
50
		<pathelement location="${basedir}/${thirdparty.location}/readonly/apache/sevlet-2.5/servlet-api.jar"/>
1082 chandransh 51
	</path>
328 ashish 52
 
315 rajveer 53
	<target name="clean">
162 naveen 54
		<delete dir="build"/>
1082 chandransh 55
	</target>
162 naveen 56
 
1082 chandransh 57
	<target name="init" depends="clean">
162 naveen 58
		<mkdir dir="build"/>
59
		<mkdir dir="build/WEB-INF"/>
60
		<mkdir dir="build/WEB-INF/lib"/>
61
		<mkdir dir="build/WEB-INF/classes"/>
1082 chandransh 62
	</target>
162 naveen 63
 
1082 chandransh 64
	<target name="compile" depends="init">
65
		<javac srcdir="src/main/java"
66
			destdir="build/WEB-INF/classes"
67
			deprecation="${compile.deprecation}"
68
			optimize="${compile.optimize}"
69
		    source="1.6" target="1.6">
1085 chandransh 70
			<classpath refid="ContentCreation.classpath"/>
1082 chandransh 71
		</javac>
72
	</target>
73
 
74
	<target name="compress" depends="compile">
1085 chandransh 75
		<copy todir="${build.home}">
1082 chandransh 76
			<fileset dir="src/main/webapp"/>
162 naveen 77
		</copy>
78
 
1085 chandransh 79
		<copy todir="${build.home}/WEB-INF/classes">
1082 chandransh 80
			<fileset dir="src/main/resources"/>
81
		</copy>
82
 
1085 chandransh 83
		<copy todir="${build.home}/WEB-INF/lib">
84
			<filelist refid="apache.libs"/>
85
			<filelist refid="other.libs"/>
86
			<mapper type="flatten"/>
87
		</copy>
88
 
89
		<copy todir="${build.home}/WEB-INF/lib" file="../lib/readonly/jython/jython.jar"/>
162 naveen 90
 
1085 chandransh 91
		<war destfile="ContentCreation.war" basedir="build"/>
1082 chandransh 92
 
1085 chandransh 93
		<copy file="ContentCreation.war" tofile="../lib/ContentCreation.war"/>
1082 chandransh 94
 
95
	</target>
315 rajveer 96
 
1082 chandransh 97
 
337 ashish 98
</project>