3
0
Fork 0
forked from mirrors/nixpkgs

Added support for custom context.xml for Tomcat

svn path=/nixpkgs/trunk/; revision=12512
This commit is contained in:
Sander van der Burg 2008-08-06 14:59:45 +00:00
parent c282368077
commit 63b9500b88

View file

@ -4,5 +4,10 @@ tar zxf $src
mkdir $out mkdir $out
mv apache-tomcat*/* $out mv apache-tomcat*/* $out
# Rename the context.xml to context.xml.default in order to allow a custom context.xml
mv $out/conf/context.xml $out/conf/context.xml.default
# Change all references from CATALINA_HOME to CATALINA_BASE and add support for shared libraries
sed -i -e 's|${catalina.home}|${catalina.base}|g' \ sed -i -e 's|${catalina.home}|${catalina.base}|g' \
-e 's|shared.loader=|shared.loader=${catalina.base}/shared/lib/*.jar|' $out/conf/catalina.properties -e 's|shared.loader=|shared.loader=${catalina.base}/shared/lib/*.jar|' $out/conf/catalina.properties