diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-06 14:22:33 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-06 14:36:15 +0100 |
commit | 393b2e3b19507d5df734be144cb29c59d989650e (patch) | |
tree | 81fe0caad900ada05f5bb30133cb412f87347a25 /pkgs/development/eclipse | |
parent | 90e533b6858a47deecff9fda027985dc68a7ac02 (diff) |
ecj: Add a setup hook that makes Ant use ECJ automatically
Diffstat (limited to 'pkgs/development/eclipse')
-rw-r--r-- | pkgs/development/eclipse/ecj/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/eclipse/ecj/default.nix b/pkgs/development/eclipse/ecj/default.nix index 432bdc72b3c8..786fcdba18a8 100644 --- a/pkgs/development/eclipse/ecj/default.nix +++ b/pkgs/development/eclipse/ecj/default.nix @@ -31,6 +31,12 @@ stdenv.mkDerivation rec { mkdir -pv $out/bin makeWrapper ${jdk.jre}/bin/java $out/bin/ecj \ --add-flags "-cp $out/share/java/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main" + + # Add a setup hook that causes Ant to use the ECJ. + mkdir -p $out/nix-support + cat <<EOF > $out/nix-support/setup-hook + export NIX_ANT_ARGS="-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter \$NIX_ANT_ARGS" + EOF ''; meta = { |