mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
print resolved path
This commit is contained in:
parent
899e134a62
commit
223eb19608
@ -97,6 +97,7 @@ def packageTask(def platform, def moreJars, def moreLibs, Closure doMore) {
|
||||
with jar
|
||||
|
||||
def rtJar = new File(System.getProperty('java.home') + "/jre/lib/rt.jar")
|
||||
println "Checking if exists: $rtJar"
|
||||
if (!rtJar.exists()) rtJar = new File('/usr/lib/jvm/java-11-openjdk-amd64/jmods/java.base.jmod') // try Debian/Ubuntu version of Java 11
|
||||
if (!rtJar.exists()) rtJar = new File('/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar') // try Debian/Ubuntu version of Java 8 if current Java doesn't have rt.jar
|
||||
if (!rtJar.exists()) rtJar = new File('/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/rt.jar') // try Debian/Ubuntu version of OpenJDK 8
|
||||
|
||||
Loading…
Reference in New Issue
Block a user