diff --git a/pkgs/development/tools/java/jclasslib/builder.sh b/pkgs/development/tools/java/jclasslib/builder.sh index e130845e3d29..1f6bdc6cfb11 100755 --- a/pkgs/development/tools/java/jclasslib/builder.sh +++ b/pkgs/development/tools/java/jclasslib/builder.sh @@ -1,9 +1,16 @@ . $stdenv/setup || exit 1 tar zxf $src || exit 1 -mkdir -p $out/bin -mv jclasslib/bin/jclasslib.jar $out/bin/ || exit 1 +cd jclasslib || exit 1 +xpf-rm -i build.xml "//taskdef" > build.new +mv build.new build.xml + +ant clean || exit 1 +ant jar || exit 1 + +mkdir -p $out/bin +mv build/jclasslib.jar $out/bin/ || exit 1 cat >> $out/bin/jclasslib <