nixpkgs/pkgs/development/eclipse/ecj/builder.sh
Martin Bravenboer 4c70ef7e5d Cleaning up the java naming conventions
svn path=/nixpkgs/trunk/; revision=3871
2005-09-17 23:58:51 +00:00

22 lines
347 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=$jre
export LANG="en_US"
$jre/bin/java -cp $out/share/ecj/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main \$@
EOF
chmod u+x $out/bin/ecj