| 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"/>
|
|
|
43 |
<pathelement location="${thirdparty.location}/ContentModel.jar"/>
|
|
|
44 |
</path>
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
<target name="main" depends="clean, compile, compress">
|
| 162 |
naveen |
48 |
<echo>
|
|
|
49 |
${message}
|
|
|
50 |
</echo>
|
|
|
51 |
</target>
|
| 328 |
ashish |
52 |
<target name="compile" depends="clean">
|
| 315 |
rajveer |
53 |
<echo>
|
| 328 |
ashish |
54 |
${compilemessage}
|
|
|
55 |
</echo>
|
|
|
56 |
<mkdir dir="bin"/>
|
|
|
57 |
<javac srcdir="src"
|
|
|
58 |
destdir="bin"
|
|
|
59 |
deprecation="${compile.deprecation}"
|
|
|
60 |
optimize="${compile.optimize}"
|
|
|
61 |
source="1.6" target="1.6">
|
|
|
62 |
<classpath refid="thirdparty.classpath"/>
|
|
|
63 |
</javac>
|
|
|
64 |
</target>
|
|
|
65 |
<target name="local" depends="clean, compile, compress">
|
|
|
66 |
<echo>
|
| 315 |
rajveer |
67 |
${localmessage}
|
|
|
68 |
</echo>
|
|
|
69 |
</target>
|
|
|
70 |
|
|
|
71 |
<target name="clean">
|
| 162 |
naveen |
72 |
<delete dir="build"/>
|
| 328 |
ashish |
73 |
<delete dir="bin"/>
|
| 162 |
naveen |
74 |
</target>
|
|
|
75 |
|
|
|
76 |
<target name="compress">
|
|
|
77 |
<mkdir dir="build"/>
|
|
|
78 |
<mkdir dir="build/WEB-INF"/>
|
|
|
79 |
<mkdir dir="build/WEB-INF/lib"/>
|
|
|
80 |
<mkdir dir="build/WEB-INF/classes"/>
|
|
|
81 |
<mkdir dir="build/WEB-INF/content"/>
|
|
|
82 |
|
|
|
83 |
<copy file="src/xml/config/web.xml" tofile="build/WEB-INF/web.xml"/>
|
|
|
84 |
|
|
|
85 |
<copy file="src/xml/config/struts.xml"
|
|
|
86 |
tofile="build/WEB-INF/classes/struts.xml"/>
|
|
|
87 |
|
|
|
88 |
<copy file="src/jsp/index.jsp" tofile="build/index.jsp"/>
|
|
|
89 |
|
|
|
90 |
<copy todir="build/WEB-INF/content">
|
|
|
91 |
<fileset dir="src/velocity"/>
|
|
|
92 |
</copy>
|
|
|
93 |
|
|
|
94 |
<copy todir="build/jquery">
|
|
|
95 |
<fileset dir="src/jquery"/>
|
|
|
96 |
</copy>
|
|
|
97 |
|
| 315 |
rajveer |
98 |
<copy file="../lib/readonly/apache/commons-beanutils-1.7.0/commons-beanutils-1.7.0.jar"
|
|
|
99 |
tofile="build/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
|
| 162 |
naveen |
100 |
|
| 315 |
rajveer |
101 |
<copy file="../lib/readonly/apache/commons-lang-2.3/commons-lang-2.3.jar"
|
| 162 |
naveen |
102 |
tofile="build/WEB-INF/lib/commons-lang-2.3.jar"/>
|
|
|
103 |
|
| 315 |
rajveer |
104 |
<copy file="../lib/readonly/apache/ognl/ognl-2.7.3.jar"
|
| 162 |
naveen |
105 |
tofile="build/WEB-INF/lib/ognl-2.7.3.jar"/>
|
|
|
106 |
|
| 315 |
rajveer |
107 |
<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-1.6.3.jar"
|
| 162 |
naveen |
108 |
tofile="build/WEB-INF/lib/velocity-1.6.3.jar"/>
|
|
|
109 |
|
| 315 |
rajveer |
110 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/xwork-core-2.1.6.jar"
|
| 162 |
naveen |
111 |
tofile="build/WEB-INF/lib/xwork-core-2.1.6.jar"/>
|
|
|
112 |
|
| 315 |
rajveer |
113 |
<copy file="../lib/readonly/apache/commons-collections-3.2/commons-collections-3.2.jar"
|
| 162 |
naveen |
114 |
tofile="build/WEB-INF/lib/commons-collections-3.2.jar"/>
|
|
|
115 |
|
| 315 |
rajveer |
116 |
<copy file="../lib/readonly/apache/commons-logging-1.0.4/commons-logging-1.0.4.jar"
|
|
|
117 |
tofile="build/WEB-INF/lib/commons-logging-1.0.4.jar"/>
|
| 162 |
naveen |
118 |
|
| 315 |
rajveer |
119 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-convention-plugin-2.1.8.1.jar"
|
| 162 |
naveen |
120 |
tofile="build/WEB-INF/lib/struts2-convention-plugin-2.1.8.1.jar"/>
|
|
|
121 |
|
| 315 |
rajveer |
122 |
<copy file="../lib/readonly/apache/commons-digester-2.0/commons-digester-2.0.jar"
|
| 162 |
naveen |
123 |
tofile="build/WEB-INF/lib/commons-digester-2.0.jar"/>
|
|
|
124 |
|
| 315 |
rajveer |
125 |
<copy file="../lib/readonly/apache/ezmorph/ezmorph-1.0.3.jar"
|
| 162 |
naveen |
126 |
tofile="build/WEB-INF/lib/ezmorph-1.0.3.jar"/>
|
|
|
127 |
|
| 315 |
rajveer |
128 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-core-2.1.8.1.jar"
|
| 162 |
naveen |
129 |
tofile="build/WEB-INF/lib/struts2-core-2.1.8.1.jar"/>
|
|
|
130 |
|
| 315 |
rajveer |
131 |
<copy file="../lib/readonly/apache/velocity-1.6.3/velocity-tools-1.4.jar"
|
|
|
132 |
tofile="build/WEB-INF/lib/velocity-tools-1.4.jar"/>
|
|
|
133 |
|
|
|
134 |
<copy file="../lib/readonly/apache/commons-fileupload-1.2.1/commons-fileupload-1.2.1.jar"
|
| 162 |
naveen |
135 |
tofile="build/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
|
|
|
136 |
|
| 315 |
rajveer |
137 |
<copy file="../lib/readonly/freemarker/freemarker-2.3.15.jar"
|
| 162 |
naveen |
138 |
tofile="build/WEB-INF/lib/freemarker-2.3.15.jar"/>
|
|
|
139 |
|
| 315 |
rajveer |
140 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/struts2-rest-plugin-2.1.8.1.jar"
|
| 162 |
naveen |
141 |
tofile="build/WEB-INF/lib/struts2-rest-plugin-2.1.8.1.jar"/>
|
|
|
142 |
|
| 315 |
rajveer |
143 |
<copy file="../lib/readonly/apache/xpp/xpp3_min-1.1.3.4.O.jar"
|
| 162 |
naveen |
144 |
tofile="build/WEB-INF/lib/xpp3_min-1.1.3.4.O.jar"/>
|
|
|
145 |
|
| 315 |
rajveer |
146 |
<copy file="../lib/readonly/apache/commons-io-1.3.2/commons-io-1.3.2.jar"
|
| 162 |
naveen |
147 |
tofile="build/WEB-INF/lib/commons-io-1.3.2.jar"/>
|
|
|
148 |
|
| 315 |
rajveer |
149 |
<copy file="../lib/readonly/apache/json/json-lib-2.1-jdk15.jar"
|
|
|
150 |
tofile="build/WEB-INF/lib/json-lib-2.1-jdk15.jar"/>
|
|
|
151 |
|
|
|
152 |
<copy file="../lib/readonly/apache/struts-2.1.8.1/xstream-1.2.2.jar"
|
| 162 |
naveen |
153 |
tofile="build/WEB-INF/lib/xstream-1.2.2.jar"/>
|
|
|
154 |
|
|
|
155 |
<copy todir="build/WEB-INF/classes">
|
|
|
156 |
<fileset dir="bin">
|
|
|
157 |
<include name="**/*.class"/>
|
|
|
158 |
</fileset>
|
|
|
159 |
</copy>
|
|
|
160 |
|
| 315 |
rajveer |
161 |
<copy file="../lib/ContentModel.jar"
|
| 162 |
naveen |
162 |
tofile="build/WEB-INF/lib/ContentModel.jar"/>
|
|
|
163 |
|
|
|
164 |
<war
|
|
|
165 |
destfile="ContentCreation.war"
|
|
|
166 |
basedir="build"/>
|
| 315 |
rajveer |
167 |
|
|
|
168 |
<copy file="build/WEB-INF/lib/ContentModel.jar"
|
|
|
169 |
tofile="../lib/ContentCreation.war"/>
|
| 162 |
naveen |
170 |
|
| 315 |
rajveer |
171 |
</target>
|
|
|
172 |
|
| 328 |
ashish |
173 |
|
| 162 |
naveen |
174 |
</project>
|