diff options
author | Sander van der Burg <s.vanderburg@tudelft.nl> | 2008-08-06 14:59:45 +0000 |
---|---|---|
committer | Sander van der Burg <s.vanderburg@tudelft.nl> | 2008-08-06 14:59:45 +0000 |
commit | 63b9500b882d06fbaa9d31a72e0c9117c3e55f63 (patch) | |
tree | f0033e11756191cc0d1e86c9ab3cad6da1f944e9 /pkgs/servers | |
parent | c282368077c2f447f654c1113c3b90cb5185c1c7 (diff) |
Added support for custom context.xml for Tomcat
svn path=/nixpkgs/trunk/; revision=12512
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/http/tomcat/builder-6.0.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/http/tomcat/builder-6.0.sh b/pkgs/servers/http/tomcat/builder-6.0.sh index 8b063ebfbfd3f..001fade388099 100644 --- a/pkgs/servers/http/tomcat/builder-6.0.sh +++ b/pkgs/servers/http/tomcat/builder-6.0.sh @@ -4,5 +4,10 @@ tar zxf $src mkdir $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' \ -e 's|shared.loader=|shared.loader=${catalina.base}/shared/lib/*.jar|' $out/conf/catalina.properties |