fixing wrappers in ant-build
svn path=/nixpkgs/trunk/; revision=24637
This commit is contained in:
parent
a26788440d
commit
cf8da224c6
1 changed files with 2 additions and 1 deletions
|
@ -52,12 +52,13 @@ stdenv.mkDerivation (
|
|||
|
||||
generateWrappersPhase =
|
||||
let
|
||||
cp = w: "-cp ${lib.optionalString (w ? classPath) w.classPath}${lib.optionalString (w ? mainClass) ":$out/lib/java/${w.jar}"}";
|
||||
cp = w: "-cp '${lib.optionalString (w ? classPath) w.classPath}${lib.optionalString (w ? mainClass) ":$out/lib/java/*"}'";
|
||||
in
|
||||
''
|
||||
header "Generating jar wrappers"
|
||||
'' + (stdenv.lib.concatMapStrings (w: ''
|
||||
|
||||
ensureDir $out/bin
|
||||
cat >> $out/bin/${w.name} <<EOF
|
||||
#! /bin/sh
|
||||
export JAVA_HOME=$jre
|
||||
|
|
Loading…
Reference in a new issue