3
0
Fork 0
forked from mirrors/nixpkgs

gradle: move to dedicated directory to prevent clashes with other java applications

This commit is contained in:
Nikolay Amiantov 2015-08-03 20:53:37 +03:00
parent 52fb36e7e0
commit 4dde32b4f2

View file

@ -9,10 +9,10 @@ stdenv.mkDerivation rec {
};
installPhase = ''
mkdir -pv $out
cp -rv lib $out
mkdir -pv $out/gradle
cp -rv lib $out/gradle
gradle_launcher_jar=$(echo $out/lib/gradle-launcher-*.jar)
gradle_launcher_jar=$(echo $out/gradle/lib/gradle-launcher-*.jar)
test -f $gradle_launcher_jar
makeWrapper ${jdk}/bin/java $out/bin/gradle \
--set JAVA_HOME ${jdk} \