1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 23:55:23 +00:00
nixpkgs/pkgs/development/tools/java/jclasslib/builder.sh
Martin Bravenboer 1778c9fa02 Use the -f option of xpf-rm
svn path=/nixpkgs/trunk/; revision=1311
2004-08-22 19:40:26 +00:00

23 lines
367 B
Bash
Executable file

. $stdenv/setup || exit 1
tar zxf $src || exit 1
cd jclasslib || exit 1
xpf-rm -f build.xml "//taskdef"
ant clean || exit 1
ant jar || exit 1
mkdir -p $out/bin
mv build/jclasslib.jar $out/bin/ || exit 1
cat >> $out/bin/jclasslib <<EOF
#! /bin/sh
export JAVA_HOME=$j2re
$j2re/bin/java -jar $out/bin/jclasslib.jar \$@
EOF
chmod a+x $out/bin/jclasslib || exit 1