generatewrapper fix

svn path=/nixpkgs/trunk/; revision=20796
This commit is contained in:
Rob Vermaas 2010-03-23 20:54:59 +00:00
parent 318234c091
commit 8929e647c6

View file

@ -41,7 +41,7 @@ stdenv.mkDerivation (
header "Generating jar wrappers" header "Generating jar wrappers"
'' + (stdenv.lib.concatMapStrings (w: '' '' + (stdenv.lib.concatMapStrings (w: ''
cat >> $out/bin/jclasslib <<EOF cat >> $out/bin/${w.name} <<EOF
#! /bin/sh #! /bin/sh
export JAVA_HOME=$jre export JAVA_HOME=$jre
$jre/bin/java ${if w ? mainClass then "-cp $out/lib/java/${w.jar} ${w.mainClass}" else "-jar $out/lib/java/${w.jar}"} \$@ $jre/bin/java ${if w ? mainClass then "-cp $out/lib/java/${w.jar} ${w.mainClass}" else "-jar $out/lib/java/${w.jar}"} \$@