summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
authorjose <jose@zeroc.com>2016-06-08 22:20:54 +0200
committerjose <jose@zeroc.com>2016-06-08 22:20:54 +0200
commitf819903e5b2ae6ae3150ccb24c47274d384d8ce7 (patch)
treef02deefaaa22339682ba1da9a493c554a455c321 /java/src
parentAllow to build JAR files with Class-Path entries (diff)
downloadice-f819903e5b2ae6ae3150ccb24c47274d384d8ce7.tar.bz2
ice-f819903e5b2ae6ae3150ccb24c47274d384d8ce7.tar.xz
ice-f819903e5b2ae6ae3150ccb24c47274d384d8ce7.zip
Use absolute paths in Class-Path
Diffstat (limited to 'java/src')
-rw-r--r--java/src/IceGridGUI/build.gradle4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/IceGridGUI/build.gradle b/java/src/IceGridGUI/build.gradle
index 83e0d4fd845..fa6a55a150f 100644
--- a/java/src/IceGridGUI/build.gradle
+++ b/java/src/IceGridGUI/build.gradle
@@ -133,7 +133,7 @@ if(icegridguiProguard.toBoolean()) {
delegate.manifest {
attribute(name: "Main-Class", value: "IceGridGUI.Main")
attribute(name: "Built-By", value: "ZeroC, Inc.")
- attribute(name: "Class-Path", value: configurations.runtime.resolve().collect { it.toURI() }.join(' '))
+ attribute(name: "Class-Path", value: configurations.runtime.resolve().collect { "file://${it.absolutePath}" }.join(' '))
}
}
}
@@ -156,7 +156,7 @@ if(icegridguiProguard.toBoolean()) {
delegate.manifest {
attribute(name: "Main-Class", value: "IceGridGUI.Main")
attribute(name: "Built-By", value: "ZeroC, Inc.")
- attribute(name: "Class-Path", value: configurations.runtime.resolve().collect { it.toURI() }.join(' ').replaceAll("${libDir}", "${jarDir}"))
+ attribute(name: "Class-Path", value: configurations.runtime.resolve().collect { "file://${it.absolutePath}" }.join(' ').replaceAll("${libDir}", "${jarDir}"))
}
}
}