shuber 2005/05/26 18:23:01 CEST
Modified files: (Branch: JAHIA-4-1-BRANCH)
. build.xml
metadata/war web.xml
Log:
Modification to build system so that we can work with renamed deployment
contexts (such as jahia40, jahia41), making it easier to deploy multiple
version of Jahia on the same Tomcat. In order to change the deployment context
name, in your ant.build.properties file, modify the
AppName=jahia
line.
Revision Changes Path
1.59.4.4.2.3 +11 -2 jahia/build.xml
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/build.xml.diff?r1=1.59.4.4.2.2&r2=1.59.4.4.2.3&f=h
1.41.2.3.2.9 +1 -1 jahia/metadata/war/web.xml
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/metadata/war/web.xml.diff?r1=1.41.2.3.2.8&r2=1.41.2.3.2.9&f=h
Index: build.xml
===================================================================
RCS file: /home/cvs/repository/jahia/Attic/build.xml,v
retrieving revision 1.59.4.4.2.2
retrieving revision 1.59.4.4.2.3
diff -u -r1.59.4.4.2.2 -r1.59.4.4.2.3
--- build.xml 15 Apr 2005 09:16:52 -0000 1.59.4.4.2.2
+++ build.xml 26 May 2005 16:23:00 -0000 1.59.4.4.2.3
@@ -151,9 +151,14 @@
<copy todir="${build.dist.war}">
<fileset dir="${src.views}"/>
</copy>
+ <copy todir="${build.dist.war.webinf}"
file="${metadata}/war/web.xml">
+ <filterset>
+ <filter token="CONTEXT_NAME" value="${AppName}"/>
+ </filterset>
+ </copy>
<war warfile="${build.dist}/${AppName}.war"
- webxml="${metadata}/war/web.xml"
+ webxml="${build.dist.war.webinf}/web.xml"
excludes="**/*.bak">
<fileset dir="${build.dist.war}">
@@ -218,7 +223,11 @@
</copy>
<mkdir dir="${deploy.webinf}"/>
- <copy todir="${deploy.webinf}" file="${metadata}/war/web.xml"/>
+ <copy todir="${deploy.webinf}" file="${metadata}/war/web.xml">
+ <filterset>
+ <filter token="CONTEXT_NAME" value="${AppName}"/>
+ </filterset>
+ </copy>
<!--
<copy todir="${deploy.webinf}" file="${metadata}/war/weblogic.xml"/>
-->
Index: web.xml
===================================================================
RCS file: /home/cvs/repository/jahia/metadata/war/Attic/web.xml,v
retrieving revision 1.41.2.3.2.8
retrieving revision 1.41.2.3.2.9
diff -u -r1.41.2.3.2.8 -r1.41.2.3.2.9
--- web.xml 27 Apr 2005 09:21:12 -0000 1.41.2.3.2.8
+++ web.xml 26 May 2005 16:23:00 -0000 1.41.2.3.2.9
@@ -67,7 +67,7 @@
be used to generate URLs
-->
<param-name>defaultContextPath</param-name>
- <param-value>/jahia</param-value>
+ <param-value>/@CONTEXT_NAME@</param-value>
</init-param>
<init-param>
<!-- This parameter defines the default servlet path that will