# HG changeset patch # User Jiri Vanek # Date 1550507686 -3600 # Node ID 1447647acb3a052adf74bbf770648d67683c645a # Parent 775337c8f04953a044f3988d92de5428e92ad2ca Implemented forgotten support for mslinks.jar library in rust launchers * Makefile.am: MSLINKS_JAR are now eported in rust launchers build * rust-launcher/src/hardcoded_paths.rs: MSLINKS_JAR is being captured here and exported as optional * rust-launcher/src/jars_helper.rs: (get_bootcp_members) now append_if_exists also get_mslin diff -r 775337c8f049 -r 1447647acb3a Makefile.am --- a/Makefile.am Mon Feb 18 17:14:24 2019 +0100 +++ b/Makefile.am Mon Feb 18 17:34:46 2019 +0100 @@ -962,6 +962,7 @@ export JSOBJECT_JAR=$(JSOBJECT_JAR) ; \ export TAGSOUP_JAR=$(TAGSOUP_JAR) ; \ export RHINO_JAR=$(RHINO_JAR) ; \ + export MSLINKS_JAR=$(MSLINKS_JAR) ; \ export MODULARJDK_ARGS_LOCATION=$(MODULARJDK_ARGS_LOCATION) ; \ unset MAIN_CLASS ; \ unset BIN_LOCATION ; \ diff -r 775337c8f049 -r 1447647acb3a rust-launcher/src/hardcoded_paths.rs --- a/rust-launcher/src/hardcoded_paths.rs Mon Feb 18 17:14:24 2019 +0100 +++ b/rust-launcher/src/hardcoded_paths.rs Mon Feb 18 17:34:46 2019 +0100 @@ -19,6 +19,7 @@ const RHINO_JAR: Option<&'static str> = option_env!("RHINO_JAR"); const ITW_LIBS: Option<&'static str> = option_env!("ITW_LIBS"); const MODULARJDK_ARGS_LOCATION: Option<&'static str> = option_env!("MODULARJDK_ARGS_LOCATION"); +const MSLINKS_JAR: Option<&'static str> = option_env!("MSLINKS_JAR"); pub fn get_jre() -> &'static str { @@ -62,6 +63,8 @@ pub fn get_rhino() -> Option<&'static str> { sanitize(RHINO_JAR) } +pub fn get_mslinks() -> Option<&'static str> { sanitize(MSLINKS_JAR) } + pub fn get_argsfile() -> &'static str { MODULARJDK_ARGS_LOCATION.unwrap_or("MODULARJDK_ARGS_LOCATION-dev-unspecified") } @@ -80,7 +83,6 @@ return None; } } - return None; } diff -r 775337c8f049 -r 1447647acb3a rust-launcher/src/jars_helper.rs --- a/rust-launcher/src/jars_helper.rs Mon Feb 18 17:14:24 2019 +0100 +++ b/rust-launcher/src/jars_helper.rs Mon Feb 18 17:34:46 2019 +0100 @@ -136,6 +136,7 @@ append_if_exists(hardcoded_paths::get_jsobject(), os, &mut cp_parts); append_if_exists(hardcoded_paths::get_rhino(), os, &mut cp_parts); append_if_exists(hardcoded_paths::get_tagsoup(), os, &mut cp_parts); + append_if_exists(hardcoded_paths::get_mslinks(), os, &mut cp_parts); let mut nashorn_jar = jre_path.clone(); nashorn_jar.push("lib"); nashorn_jar.push("ext");