"property [java.version] is missing for plugin [" + name + "]"); JarHell.checkVersionFormat(javaVersionString); final String classname = propsMap.remove("classname"); if (classname == null) {
/** inspect manifest for sure incompatibilities */ private static void checkManifest(Manifest manifest, Path jar) { // give a nice error if jar requires a newer java version String targetVersion = manifest.getMainAttributes().getValue("X-Compile-Target-JDK"); if (targetVersion != null) { checkVersionFormat(targetVersion); checkJavaVersion(jar.toString(), targetVersion); } }
/** inspect manifest for sure incompatibilities */ private static void checkManifest(Manifest manifest, Path jar) { // give a nice error if jar requires a newer java version String targetVersion = manifest.getMainAttributes().getValue("X-Compile-Target-JDK"); if (targetVersion != null) { checkVersionFormat(targetVersion); checkJavaVersion(jar.toString(), targetVersion); } }
/** inspect manifest for sure incompatibilities */ static void checkManifest(Manifest manifest, Path jar) { // give a nice error if jar requires a newer java version String targetVersion = manifest.getMainAttributes().getValue("X-Compile-Target-JDK"); if (targetVersion != null) { checkVersionFormat(targetVersion); checkJavaVersion(jar.toString(), targetVersion); } // give a nice error if jar is compiled against different es version String systemESVersion = Version.CURRENT.toString(); String targetESVersion = manifest.getMainAttributes().getValue("X-Compile-Elasticsearch-Version"); if (targetESVersion != null && targetESVersion.equals(systemESVersion) == false) { throw new IllegalStateException(jar + " requires Elasticsearch " + targetESVersion + ", your system: " + systemESVersion); } }
/** inspect manifest for sure incompatibilities */ static void checkManifest(Manifest manifest, Path jar) { // give a nice error if jar requires a newer java version String targetVersion = manifest.getMainAttributes().getValue("X-Compile-Target-JDK"); if (targetVersion != null) { checkVersionFormat(targetVersion); checkJavaVersion(jar.toString(), targetVersion); } // give a nice error if jar is compiled against different es version String systemESVersion = Version.CURRENT.toString(); String targetESVersion = manifest.getMainAttributes().getValue("X-Compile-Elasticsearch-Version"); if (targetESVersion != null && targetESVersion.equals(systemESVersion) == false) { throw new IllegalStateException(jar + " requires Elasticsearch " + targetESVersion + ", your system: " + systemESVersion); } }
throw new IllegalArgumentException("Property [java.version] is missing for jvm plugin [" + name + "]"); JarHell.checkVersionFormat(javaVersionString); JarHell.checkJavaVersion(name, javaVersionString); isolated = Boolean.parseBoolean(props.getProperty("isolated", "true"));
"property [java.version] is missing for plugin [" + name + "]"); JarHell.checkVersionFormat(javaVersionString); final String classname = propsMap.remove("classname"); if (classname == null) {
"property [java.version] is missing for plugin [" + name + "]"); JarHell.checkVersionFormat(javaVersionString); JarHell.checkJavaVersion(name, javaVersionString); final String classname = props.getProperty("classname");
"property [java.version] is missing for plugin [" + name + "]"); JarHell.checkVersionFormat(javaVersionString); final String classname = propsMap.remove("classname"); if (classname == null) {