nixpkgs/pkgs/development/tools/build-managers/apache-ant/builder.sh
Eelco Dolstra e68cfbe1b4 * Symlink to the lib/ and etc/ directories of the real Ant,
OpenOffice needs that.

svn path=/nixpkgs/trunk/; revision=9261
2007-09-06 15:30:38 +00:00

22 lines
272 B
Bash

source $stdenv/setup
mkdir -p $out/bin
cat >> $out/bin/ant <<EOF
#! /bin/sh
export JAVA_HOME=$jdk
export JAVACMD=$jdk/bin/java
export ANT_OPTS=""
export ANT_ARGS=""
export LANG="en_US"
$ant/bin/core-ant \$@
EOF
chmod a+x $out/bin/ant
ln -s $ant/lib $ant/etc $out/