fixing wrappers in ant-build
svn path=/nixpkgs/trunk/; revision=24637
This commit is contained in:
parent
a26788440d
commit
cf8da224c6
@ -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 New Issue
Block a user