summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2022-07-21 16:00:50 +0200
committergjoranv <gv@verizonmedia.com>2022-07-21 16:00:50 +0200
commit87dc0dd59b262a11d4434607a0e75d47b9a1d33b (patch)
treedebb4daaa6b5f557eefd06c40e4c39678278b84d /config-model
parent8513b31a4b8dfe5db185378147124a937ff488fd (diff)
Handle bundle jars with no custom filename suffix.
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java b/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
index a330d80c2f9..3bc50bd9039 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/container/PlatformBundles.java
@@ -34,9 +34,9 @@ public class PlatformBundles {
// Bundles that must be loaded for all container types.
public static final Set<Path> commonVespaBundles = Stream.of(
- "container-apache-http-client-bundle-jar-with-dependencies.jar", // Apache http client repackaged
+ "container-apache-http-client-bundle", // Apache http client repackaged
"container-spifly.jar", // Aries SPIFly repackaged
- "hosted-zone-api-jar-with-dependencies.jar",
+ "hosted-zone-api",
"security-utils.jar",
"zkfacade",
"zookeeper-server" // TODO: not necessary in metrics-proxy.
@@ -55,7 +55,8 @@ public class PlatformBundles {
public static Path absoluteBundlePath(String fileName, JarSuffix jarSuffix) {
if (fileName == null) return null;
- return LIBRARY_PATH.resolve(Paths.get(fileName + jarSuffix.suffix));
+ String fullFilename = fileName.endsWith(".jar") ? fileName : fileName + jarSuffix.suffix;
+ return LIBRARY_PATH.resolve(Paths.get(fullFilename));
}
public static boolean isSearchAndDocprocClass(String className) {