File tree Expand file tree Collapse file tree
main/java/org/fedoraproject/xmvn/generator/jpscript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public void generate(Collector collector) {
2828 if (content .contains ("\n . /usr/share/java-utils/java-functions\n " )) {
2929 collector .addRequires (filePath , "javapackages-tools" );
3030 }
31- if (content .contains ("\n export JAVA_HOME=\" /usr/lib/jvm/jre-21-openjdk\" \n " )) {
31+ if (content .contains ("\n export JAVA_HOME=\" ${JAVA_HOME:- /usr/lib/jvm/jre-21-openjdk} \" \n " )) {
3232 collector .addRequires (filePath , "java-21-openjdk-headless" );
3333 }
3434 }
Original file line number Diff line number Diff line change 44# JPackage Project <http://www.jpackage.org/>
55
66# Set default JAVA_HOME
7- export JAVA_HOME=" /usr/lib/jvm/jre-21-openjdk"
7+ export JAVA_HOME=" ${JAVA_HOME :- / usr/ lib/ jvm/ jre-21-openjdk} "
88
99# Source functions library
1010. /usr/share/java-utils/java-functions
You can’t perform that action at this time.
0 commit comments