| Line 14... |
Line 14... |
| 14 |
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
|
14 |
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
|
| 15 |
<taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"/>
|
15 |
<taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"/>
|
| 16 |
<taskdef name="roles" classname="org.apache.catalina.ant.RolesTask"/>
|
16 |
<taskdef name="roles" classname="org.apache.catalina.ant.RolesTask"/>
|
| 17 |
<taskdef name="start" classname="org.apache.catalina.ant.StartTask"/>
|
17 |
<taskdef name="start" classname="org.apache.catalina.ant.StartTask"/>
|
| 18 |
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
|
18 |
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
|
| 19 |
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
|
19 |
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
|
| 20 |
|
20 |
|
| 21 |
<property name="message"
|
21 |
<property name="message"
|
| - |
|
22 |
value="Building the ContentCreation.war"/>
|
| - |
|
23 |
|
| - |
|
24 |
<property name="localmessage"
|
| 22 |
value="Building and Deploying the ContentCreation.war"/>
|
25 |
value="Building and Deploying the ContentCreation.war"/>
|
| 23 |
|
26 |
|
| 24 |
<target name="main" depends="clean, compress, undeploy, deploy">
|
27 |
<target name="main" depends="clean, compress">
|
| 25 |
<echo>
|
28 |
<echo>
|
| 26 |
${message}
|
29 |
${message}
|
| 27 |
</echo>
|
30 |
</echo>
|
| 28 |
</target>
|
31 |
</target>
|
| 29 |
|
32 |
|
| - |
|
33 |
<target name="local" depends="clean, compress, undeploy, deploy">
|
| - |
|
34 |
<echo>
|
| - |
|
35 |
${localmessage}
|
| - |
|
36 |
</echo>
|
| - |
|
37 |
</target>
|
| - |
|
38 |
|
| 30 |
<target name="clean">
|
39 |
<target name="clean">
|
| 31 |
<delete dir="build"/>
|
40 |
<delete dir="build"/>
|
| 32 |
</target>
|
41 |
</target>
|
| 33 |
|
42 |
|
| 34 |
<target name="compress">
|
43 |
<target name="compress">
|
| 35 |
<mkdir dir="build"/>
|
44 |
<mkdir dir="build"/>
|
| Line 51... |
Line 60... |
| 51 |
|
60 |
|
| 52 |
<copy todir="build/jquery">
|
61 |
<copy todir="build/jquery">
|
| 53 |
<fileset dir="src/jquery"/>
|
62 |
<fileset dir="src/jquery"/>
|
| 54 |
</copy>
|
63 |
</copy>
|
| 55 |
|
64 |
|
| 56 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/commons-beanutils-1.7.0.jar"
|
65 |
<copy file="../lib/readonly/apache/commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"
|
| 57 |
tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
|
66 |
tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
|
| 58 |
|
67 |
|
| 59 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/commons-lang-2.3.jar"
|
68 |
<copy file="../lib/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar"
|
| 60 |
tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>
|
69 |
tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>
|
| 61 |
|
70 |
|
| 62 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/ognl-2.7.3.jar"
|
71 |
<copy file="../lib/readonly/apache/ognl/ognl-2.7.3.jar"
|
| 63 |
tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>
|
72 |
tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>
|
| 64 |
|
73 |
|
| 65 |
<copy file="/home/naveen/workspace/Velocity/velocity-1.6.3/velocity-1.6.3.jar"
|
74 |
<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar"
|
| 66 |
tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>
|
75 |
tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>
|
| 67 |
|
76 |
|
| 68 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/xwork-core-2.1.6.jar"
|
77 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar"
|
| 69 |
tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>
|
78 |
tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>
|
| 70 |
|
79 |
|
| 71 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/commons-collections-3.2.jar"
|
80 |
<copy file="../lib/readonly/apache/commons-collections-3.2/commons-collections-3.2.jar"
|
| 72 |
tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>
|
81 |
tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>
|
| 73 |
|
82 |
|
| 74 |
<copy file="/usr/share/java/commons-logging-1.1.1.jar"
|
83 |
<copy file="../lib/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar"
|
| 75 |
tofile="build/WEB-INF/lib/commons-logging-1.1.1.jar"/>
|
84 |
tofile="build/WEB-INF/lib/commons-logging-1.0.4.jar"/>
|
| 76 |
|
85 |
|
| 77 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/struts2-convention-plugin-2.1.8.1.jar"
|
86 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"
|
| 78 |
tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>
|
87 |
tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>
|
| 79 |
|
88 |
|
| 80 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/commons-digester-2.0.jar"
|
89 |
<copy file="../lib/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar"
|
| 81 |
tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>
|
90 |
tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>
|
| 82 |
|
91 |
|
| 83 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/ezmorph-1.0.3.jar"
|
92 |
<copy file="../lib/readonly/apache/ezmorph/ezmorph-1.0.3.jar"
|
| 84 |
tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>
|
93 |
tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>
|
| 85 |
|
94 |
|
| 86 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/struts2-core-2.1.8.1.jar"
|
95 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar"
|
| 87 |
tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>
|
96 |
tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>
|
| 88 |
|
97 |
|
| 89 |
<copy file="/home/naveen/workspace/Velocity/velocity-tools-1.4/lib/velocity-tools-1.4.jar"
|
98 |
<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar"
|
| 90 |
tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>
|
99 |
tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>
|
| 91 |
|
100 |
|
| 92 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/commons-fileupload-1.2.1.jar"
|
101 |
<copy file="../lib/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"
|
| 93 |
tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
|
102 |
tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
|
| 94 |
|
103 |
|
| 95 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/freemarker-2.3.15.jar"
|
104 |
<copy file="../lib/readonly/freemarker/freemarker-2.3.15.jar"
|
| 96 |
tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>
|
105 |
tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>
|
| 97 |
|
106 |
|
| 98 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/struts2-rest-plugin-2.1.8.1.jar"
|
107 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"
|
| 99 |
tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>
|
108 |
tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>
|
| 100 |
|
109 |
|
| 101 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/xpp3_min-1.1.3.4.O.jar"
|
110 |
<copy file="../lib/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar"
|
| 102 |
tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>
|
111 |
tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>
|
| 103 |
|
112 |
|
| 104 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/commons-io-1.3.2.jar"
|
113 |
<copy file="../lib/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar"
|
| 105 |
tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>
|
114 |
tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>
|
| 106 |
|
115 |
|
| 107 |
<copy file="/var/lib/tomcat6/webapps200510/struts2-rest-showcase-2.1.8.1/WEB-INF/lib/json-lib-2.1-jdk15.jar"
|
116 |
<copy file="../lib/readonly/apache/json/json-lib-2.1-jdk15.jar"
|
| 108 |
tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>
|
117 |
tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>
|
| 109 |
|
- |
|
| - |
|
118 |
|
| 110 |
<copy file="/home/naveen/workspace/struts-2.1.8.1/lib/xstream-1.2.2.jar"
|
119 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar"
|
| 111 |
tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>
|
120 |
tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>
|
| 112 |
|
121 |
|
| 113 |
<copy todir="build/WEB-INF/classes">
|
122 |
<copy todir="build/WEB-INF/classes">
|
| 114 |
<fileset dir="bin">
|
123 |
<fileset dir="bin">
|
| 115 |
<include name="**/*.class"/>
|
124 |
<include name="**/*.class"/>
|
| 116 |
</fileset>
|
125 |
</fileset>
|
| 117 |
</copy>
|
126 |
</copy>
|
| 118 |
|
127 |
|
| 119 |
<copy file="../webapp/ContentModel.jar"
|
128 |
<copy file="../lib/ContentModel.jar"
|
| 120 |
tofile="build/WEB-INF/lib/ContentModel.jar"/>
|
129 |
tofile="build/WEB-INF/lib/ContentModel.jar"/>
|
| 121 |
|
130 |
|
| 122 |
<war
|
131 |
<war
|
| 123 |
destfile="ContentCreation.war"
|
132 |
destfile="ContentCreation.war"
|
| 124 |
basedir="build"/>
|
133 |
basedir="build"/>
|
| - |
|
134 |
|
| - |
|
135 |
<copy file="build/WEB-INF/lib/ContentModel.jar"
|
| - |
|
136 |
tofile="../lib/ContentCreation.war"/>
|
| - |
|
137 |
|
| 125 |
</target>
|
138 |
</target>
|
| 126 |
|
139 |
|
| 127 |
<target name="deploy" description="Install web application"
|
140 |
<target name="deploy" description="Install web application"
|
| 128 |
depends="compress">
|
141 |
depends="compress">
|
| 129 |
<deploy url="${url}" username="${username}" password="${password}"
|
142 |
<deploy url="${url}" username="${username}" password="${password}"
|
| 130 |
path="${path}" war="file:ContentCreation.war"/>
|
143 |
path="${path}" war="file:ContentCreation.war"/>
|