From 4159ca7aab2937cc921fd5e83fa4e3187be3ffbd Mon Sep 17 00:00:00 2001 From: nmammeri Date: Sat, 29 Jun 2024 12:48:21 +0200 Subject: [PATCH] ci: debug prints --- extract-core/build.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/extract-core/build.rs b/extract-core/build.rs index 0f596df..97f713b 100644 --- a/extract-core/build.rs +++ b/extract-core/build.rs @@ -12,7 +12,6 @@ fn main() { let dist_dir = root_dir.join("target").join(profile).join("deps"); // Rerun this build script if the tika-native build directory changes - println!("cargo:rerun-if-env-changed=JAVA_HOME"); //let tika_build_path = root_dir.join("tika-native/build/native/nativeCompile"); //println!("cargo::rerun-if-changed={}", tika_build_path.display()); @@ -20,9 +19,13 @@ fn main() { check_graalvm(&target_os); // Just for debugging - //println!("cargo:warning=gradlew: {}", gradlew); - //println!("cargo:warning=dist_dir: {}", dist_dir.display()); - // println!("cargo:warning=out_dir: {}", out_dir.display()); + let graal_home = env::var_os("GRAALVM_HOME"); + let java_home = env::var("JAVA_HOME"); + + println!("cargo:warning=GRAALVM_HOME: {:?}", graal_home); + println!("cargo:warning=JAVA_HOME: {:?}", java_home); + println!("cargo:warning=dist_dir: {}", dist_dir.display()); + println!("cargo:warning=out_dir: {}", out_dir.display()); gradle_build(&target_os, &tika_native_dir, &out_dir, &dist_dir);