| Line 1... |
Line 1... |
| 1 |
<?xml version="1.0"?>
|
1 |
<?xml version="1.0"?>
|
| 2 |
<project default="main">
|
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"/>
|
- |
|
| 19 |
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
|
- |
|
| 20 |
|
3 |
|
| 21 |
<property name="message"
|
4 |
<property name="message"
|
| 22 |
value="Building the ContentCreation.war"/>
|
5 |
value="Building the ContentCreation.war"/>
|
| 23 |
|
6 |
|
| 24 |
<property name="localmessage"
|
7 |
<property name="localmessage"
|
| 25 |
value="Building and Deploying the ContentCreation.war"/>
|
8 |
value="Building and Deploying the ContentCreation.war"/>
|
| - |
|
9 |
<property name="compilemessage"
|
| - |
|
10 |
value="Compiling ContentCreation.war"/>
|
| 26 |
|
11 |
|
| - |
|
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 |
|
| 27 |
<target name="main" depends="clean, compress">
|
47 |
<target name="main" depends="clean, compile, compress">
|
| 28 |
<echo>
|
48 |
<echo>
|
| 29 |
${message}
|
49 |
${message}
|
| 30 |
</echo>
|
50 |
</echo>
|
| 31 |
</target>
|
51 |
</target>
|
| - |
|
52 |
<target name="compile" depends="clean">
|
| 32 |
|
53 |
<echo>
|
| - |
|
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>
|
| 33 |
<target name="local" depends="clean, compress, undeploy, deploy">
|
65 |
<target name="local" depends="clean, compile, compress">
|
| 34 |
<echo>
|
66 |
<echo>
|
| 35 |
${localmessage}
|
67 |
${localmessage}
|
| 36 |
</echo>
|
68 |
</echo>
|
| 37 |
</target>
|
69 |
</target>
|
| 38 |
|
70 |
|
| 39 |
<target name="clean">
|
71 |
<target name="clean">
|
| 40 |
<delete dir="build"/>
|
72 |
<delete dir="build"/>
|
| - |
|
73 |
<delete dir="bin"/>
|
| 41 |
</target>
|
74 |
</target>
|
| 42 |
|
75 |
|
| 43 |
<target name="compress">
|
76 |
<target name="compress">
|
| 44 |
<mkdir dir="build"/>
|
77 |
<mkdir dir="build"/>
|
| 45 |
<mkdir dir="build/WEB-INF"/>
|
78 |
<mkdir dir="build/WEB-INF"/>
|
| Line 135... |
Line 168... |
| 135 |
<copy file="build/WEB-INF/lib/ContentModel.jar"
|
168 |
<copy file="build/WEB-INF/lib/ContentModel.jar"
|
| 136 |
tofile="../lib/ContentCreation.war"/>
|
169 |
tofile="../lib/ContentCreation.war"/>
|
| 137 |
|
170 |
|
| 138 |
</target>
|
171 |
</target>
|
| 139 |
|
172 |
|
| 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 |
|
173 |
|
| 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>
|
174 |
</project>
|
| 158 |
|
175 |
|