diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2010-03-05 10:35:11 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2010-03-05 10:35:11 +0000 |
commit | e55f37246a38a1fd79677e2f7d25a20da6d5e91e (patch) | |
tree | e8b57fcde3d1a4fd5112d4d144b95c633e10905a /pkgs/build-support | |
parent | 0e809b5acad692e9aed868e98c85a22462a1f273 (diff) |
use hydrantlogger if in environment
svn path=/nixpkgs/trunk/; revision=20399
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/release/ant-build.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/build-support/release/ant-build.nix b/pkgs/build-support/release/ant-build.nix index 7aa449af3a6a4..89b1db090a5c8 100644 --- a/pkgs/build-support/release/ant-build.nix +++ b/pkgs/build-support/release/ant-build.nix @@ -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 '' |