use hydrantlogger if in environment

svn path=/nixpkgs/trunk/; revision=20399
This commit is contained in:
Rob Vermaas 2010-03-05 10:35:11 +00:00
parent 0e809b5aca
commit e55f37246a

View File

@ -18,6 +18,15 @@ stdenv.mkDerivation (
postPhases =
["generateWrappersPhase" "finalPhase"];
prePhases =
["antSetupPhase"];
antSetupPhase = ''
if test "$hydraAntLogger" != "" ; then
export ANT_ARGS="-logger org.hydra.ant.HydraLogger -lib `ls $hydraAntLogger/lib/java/*.jar | head -1`"
fi
'';
installPhase = ''
ensureDir $out/lib/java
${ if jars == [] then ''