maven-build: only copy site dir if it exists

svn path=/nixpkgs/trunk/; revision=23692
This commit is contained in:
Rob Vermaas 2010-09-09 07:22:45 +00:00
parent b601947bcb
commit 62eb8741ce

View File

@ -89,7 +89,9 @@ stdenv.mkDerivation ( rec {
'';
finalPhase = ''
cp -R target/site $out/
if [ -d target/site ] ; then
cp -R target/site $out/
fi
'';
} // args
)