From 6443c36136c4e21af1ba58d1b323c2c21afddd20 Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Fri, 4 Sep 2026 08:40:30 -1000 Subject: [PATCH] Keep cufile.log out of the Java source tree cuFile writes cufile.log into the JVM's working directory, leaving a stray file in java/cuvs-java and java/cuvs-lucene after every test run. Point CUFILE_LOGFILE_PATH at target/ in the failsafe and surefire forks, and gitignore the file for the example and benchmark modules, which are launched as bare JVMs and so aren't covered by the plugin config. Follow-up to #2257 --- java/.gitignore | 1 + java/cuvs-java/pom.xml | 3 +++ java/cuvs-lucene/pom.xml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/java/.gitignore b/java/.gitignore index 2e98aff7ba..6f4eb283a3 100644 --- a/java/.gitignore +++ b/java/.gitignore @@ -1,5 +1,6 @@ *.iml hs_err*.log +cufile.log target/ jextract-22/ openjdk-22-jextract* diff --git a/java/cuvs-java/pom.xml b/java/cuvs-java/pom.xml index d4d7708a80..b8e969d07b 100644 --- a/java/cuvs-java/pom.xml +++ b/java/cuvs-java/pom.xml @@ -183,6 +183,9 @@ SPDX-License-Identifier: Apache-2.0 1 --enable-native-access=com.nvidia.cuvs + + ${project.build.directory}/cufile.log + diff --git a/java/cuvs-lucene/pom.xml b/java/cuvs-lucene/pom.xml index 48dc6d7889..cf7628137e 100644 --- a/java/cuvs-lucene/pom.xml +++ b/java/cuvs-lucene/pom.xml @@ -194,6 +194,9 @@ SPDX-License-Identifier: Apache-2.0 ${project.basedir}/src/main/resources/logging.properties + + ${project.build.directory}/cufile.log +