summary refs log tree commit diff
path: root/pkgs/servers/http/tomcat
diff options
context:
space:
mode:
authorSander van der Burg <s.vanderburg@tudelft.nl>2009-10-13 13:21:51 +0000
committerSander van der Burg <s.vanderburg@tudelft.nl>2009-10-13 13:21:51 +0000
commit223789d4118e3feccb5e88faa54f3ed3567e633c (patch)
treecf5a10100a0ba87a3d6b39ca1497e17e028253e6 /pkgs/servers/http/tomcat
parent37a65be4ffbf7b046320515ec3c8bd2f05821ca4 (diff)
downloadnixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.tar
nixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.tar.gz
nixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.tar.bz2
nixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.tar.lz
nixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.tar.xz
nixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.tar.zst
nixpkgs-223789d4118e3feccb5e88faa54f3ed3567e633c.zip
Cleaned the expression of tomcat a bit
svn path=/nixpkgs/trunk/; revision=17777
Diffstat (limited to 'pkgs/servers/http/tomcat')
-rw-r--r--pkgs/servers/http/tomcat/axis2/builder.sh8
-rw-r--r--pkgs/servers/http/tomcat/axis2/default.nix6
2 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/servers/http/tomcat/axis2/builder.sh b/pkgs/servers/http/tomcat/axis2/builder.sh
index fa58a9e5292..91d300822a7 100644
--- a/pkgs/servers/http/tomcat/axis2/builder.sh
+++ b/pkgs/servers/http/tomcat/axis2/builder.sh
@@ -1,14 +1,14 @@
-buildInputs="$unzip $apacheAnt $jdk"
 source $stdenv/setup
 
 unzip $src
 cd axis2-*
-ensureDir $out/share/java/axis2
-cp lib/* $out/share/java/axis2
+ensureDir $out
+cp -av * $out
 cd webapp
 ant
+cd ..
 ensureDir $out/webapps
-cp ../dist/axis2.war $out/webapps
+cp dist/axis2.war $out/webapps
 cd $out/webapps
 mkdir axis2
 cd axis2
diff --git a/pkgs/servers/http/tomcat/axis2/default.nix b/pkgs/servers/http/tomcat/axis2/default.nix
index 6e0cad66e49..c3529524575 100644
--- a/pkgs/servers/http/tomcat/axis2/default.nix
+++ b/pkgs/servers/http/tomcat/axis2/default.nix
@@ -1,15 +1,13 @@
 {stdenv, fetchurl, apacheAnt, jdk, unzip}:
 
 stdenv.mkDerivation {
-
   name = "axis2-1.5";
 
-  builder = ./builder.sh;
-
   src = fetchurl {
     url = http://apache.mirror.easycolocate.nl/ws/axis2/1_5/axis2-1.5-bin.zip;
     sha256 = "0f0a471xfsjx7s3i9awhajl1kli8y8pd8aiki7cwb9n4g467rwmc";
   };
 
-  inherit apacheAnt jdk unzip;
+  buildInputs = [ unzip apacheAnt jdk ];
+  builder = ./builder.sh;
 }