mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
use hydrantlogger if in environment
svn path=/nixpkgs/trunk/; revision=20399
This commit is contained in:
parent
0e809b5aca
commit
e55f37246a
1 changed files with 9 additions and 0 deletions
|
@ -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 ''
|
||||
|
|
Loading…
Reference in a new issue