mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
ecj: Add a setup hook that makes Ant use ECJ automatically
This commit is contained in:
parent
90e533b685
commit
393b2e3b19
1 changed files with 6 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue