nixpkgs/pkgs/servers/http/tomcat/axis2/builder.sh
Sander van der Burg 92910e461e Extract war archive so that it can be deployed from a nix profile
svn path=/nixpkgs/trunk/; revision=10773
2008-02-20 12:33:17 +00:00

16 lines
271 B
Bash

buildInputs="$unzip $apacheAnt $jdk"
source $stdenv/setup
unzip $src
cd axis2-*
ensureDir $out/share/java/axis2
cp lib/* $out/share/java/axis2
cd webapp
ant
ensureDir $out/webapps
cp ../dist/axis2.war $out/webapps
cd $out/webapps
mkdir axis2
cd axis2
unzip ../axis2.war