nixpkgs/pkgs/development/eclipse/ecj/builder.sh
Martin Bravenboer a7eba5ec59 Added the Eclipse JDT SDK
svn path=/nixpkgs/trunk/; revision=3785
2005-09-07 10:08:00 +00:00

21 lines
349 B
Bash

. $stdenv/setup
unzip $src
cd jdtcoresrc
ant -f compilejdtcorewithjavac.xml
mkdir -p $out/share/ecj
mv ecj.jar $out/share/ecj
mkdir -p $out/bin
cat >> $out/bin/ecj <<EOF
#! /bin/sh
export JAVA_HOME=$j2re
export LANG="en_US"
$j2re/bin/java -cp $out/share/ecj/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main \$@
EOF
chmod u+x $out/bin/ecj