Subversion Repositories SmartDukaan

Rev

Rev 162 | Rev 328 | 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
	<!-- Configure properties to access the Manager application -->
4
	<property name="url"      value="http://localhost:8080/manager"/>
5
	<property name="username" value="tomcat"/>
6
	<property name="password" value="123456"/>
7
 
8
	<!-- Configure the context path for this application -->
9
	<property name="path"     value="/content"/>
10
 
11
	<!-- Configure the custom Ant tasks for the Manager application -->
12
	<taskdef name="deploy"    classname="org.apache.catalina.ant.DeployTask"/>
13
	<taskdef name="list"      classname="org.apache.catalina.ant.ListTask"/>
14
	<taskdef name="reload"    classname="org.apache.catalina.ant.ReloadTask"/>
15
	<taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"/>
16
	<taskdef name="roles"     classname="org.apache.catalina.ant.RolesTask"/>
17
	<taskdef name="start"     classname="org.apache.catalina.ant.StartTask"/>
18
	<taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"/>
315 rajveer 19
	<taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"/>  
162 naveen 20
 
21
	<property name="message" 
315 rajveer 22
		value="Building the ContentCreation.war"/>
23
 
24
	<property name="localmessage" 
162 naveen 25
		value="Building and Deploying the ContentCreation.war"/>
26
 
315 rajveer 27
	<target name="main" depends="clean, compress">
162 naveen 28
		<echo>
29
			${message}
30
		</echo>
31
	</target>
32
 
315 rajveer 33
	<target name="local" depends="clean, compress, undeploy, deploy">
34
		<echo>
35
			${localmessage}
36
		</echo>
37
	</target>
38
 
39
	<target name="clean">
162 naveen 40
		<delete dir="build"/>
41
	</target>	
42
 
43
	<target name="compress">
44
		<mkdir dir="build"/>
45
		<mkdir dir="build/WEB-INF"/>
46
		<mkdir dir="build/WEB-INF/lib"/>
47
		<mkdir dir="build/WEB-INF/classes"/>
48
		<mkdir dir="build/WEB-INF/content"/>
49
 
50
		<copy file="src/xml/config/web.xml" tofile="build/WEB-INF/web.xml"/>
51
 
52
		<copy file="src/xml/config/struts.xml" 
53
			tofile="build/WEB-INF/classes/struts.xml"/>
54
 
55
        <copy file="src/jsp/index.jsp" tofile="build/index.jsp"/>
56
 
57
		<copy todir="build/WEB-INF/content">
58
			<fileset dir="src/velocity"/>
59
		</copy>
60
 
61
        <copy todir="build/jquery">
62
            <fileset dir="src/jquery"/>
63
        </copy>
64
 
315 rajveer 65
        <copy file="../lib/readonly/apache/commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"
66
        	tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
162 naveen 67
 
315 rajveer 68
        <copy file="../lib/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar" 
162 naveen 69
            tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>
70
 
315 rajveer 71
        <copy file="../lib/readonly/apache/ognl/ognl-2.7.3.jar" 
162 naveen 72
            tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>
73
 
315 rajveer 74
        <copy file="../lib/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar" 
162 naveen 75
            tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>
76
 
315 rajveer 77
        <copy file="../lib/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar" 
162 naveen 78
            tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>
79
 
315 rajveer 80
        <copy file="../lib/readonly/apache/commons-collections-3.2/commons-collections-3.2.jar" 
162 naveen 81
            tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>
82
 
315 rajveer 83
        <copy file="../lib/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar" 
84
            tofile="build/WEB-INF/lib/commons-logging-1.0.4.jar"/>
162 naveen 85
 
315 rajveer 86
        <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar" 
162 naveen 87
            tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>
88
 
315 rajveer 89
        <copy file="../lib/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar" 
162 naveen 90
            tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>
91
 
315 rajveer 92
        <copy file="../lib/readonly/apache/ezmorph/ezmorph-1.0.3.jar" 
162 naveen 93
            tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>
94
 
315 rajveer 95
        <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar" 
162 naveen 96
            tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>
97
 
315 rajveer 98
		<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar" 
99
		            tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>
100
 
101
        <copy file="../lib/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar" 
162 naveen 102
            tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
103
 
315 rajveer 104
        <copy file="../lib/readonly/freemarker/freemarker-2.3.15.jar" 
162 naveen 105
            tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>
106
 
315 rajveer 107
        <copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar" 
162 naveen 108
            tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>
109
 
315 rajveer 110
        <copy file="../lib/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar" 
162 naveen 111
            tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>
112
 
315 rajveer 113
        <copy file="../lib/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar" 
162 naveen 114
            tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>
115
 
315 rajveer 116
		<copy file="../lib/readonly/apache/json/json-lib-2.1-jdk15.jar" 
117
		            tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>
118
 
119
        <copy file="../lib/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar" 
162 naveen 120
            tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>
121
 
122
		<copy todir="build/WEB-INF/classes">
123
			<fileset dir="bin">
124
				<include name="**/*.class"/>
125
			</fileset>
126
		</copy>
127
 
315 rajveer 128
        <copy file="../lib/ContentModel.jar" 
162 naveen 129
			tofile="build/WEB-INF/lib/ContentModel.jar"/>
130
 
131
		<war 
132
			destfile="ContentCreation.war" 
133
			basedir="build"/>
315 rajveer 134
 
135
		<copy file="build/WEB-INF/lib/ContentModel.jar" 
136
			tofile="../lib/ContentCreation.war"/>
162 naveen 137
 
315 rajveer 138
        </target>
139
 
162 naveen 140
	<target name="deploy" description="Install web application"
141
			  depends="compress">
142
		<deploy url="${url}" username="${username}" password="${password}"
143
				path="${path}" war="file:ContentCreation.war"/>
144
	</target>
145
 
146
	<target name="reload" description="Reload web application"
147
			  depends="compress">
148
		<reload  url="${url}" username="${username}" password="${password}"
149
				path="${path}"/>
150
	</target>
151
 
152
	<target name="undeploy" description="Remove web application">
153
		<undeploy url="${url}" username="${username}" password="${password}"
154
				path="${path}"/>
155
	</target>
156
 
157
</project>