From 0c534521fb6d617b6ce42de4fe24aac3daf1dcf6 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 15 Apr 2022 18:50:28 +0200 Subject: dev-java/log4j-core: use @argfile when invoking javac Signed-off-by: Florian Schmaus --- dev-java/log4j-core/log4j-core-2.17.2.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev-java/log4j-core') diff --git a/dev-java/log4j-core/log4j-core-2.17.2.ebuild b/dev-java/log4j-core/log4j-core-2.17.2.ebuild index 9dcdcd2dc96a..ff6f6cff8753 100644 --- a/dev-java/log4j-core/log4j-core-2.17.2.ebuild +++ b/dev-java/log4j-core/log4j-core-2.17.2.ebuild @@ -157,9 +157,11 @@ src_compile() { "${JAVA_GENTOO_CLASSPATH},${JAVA_CLASSPATH_EXTRA}")" # Just in case java-pkg-simple.eclass changes the path in the future mkdir -p "${classes}" || die "Failed to create directory for classes" + local sources_list_file="${T}/sources.lst" + find "${JAVA_SRC_DIR}" -type f -name "*.java" > "${sources_list_file}" || die ejavac -d "${classes}" -cp "${classpath}" \ -proc:only -processor "${processor}" \ - $(find "${JAVA_SRC_DIR}" -name "*.java") + @"${sources_list_file}" # Update the JAR to include the serialized plugin listing file local jar="$(java-config -j)" "${jar}" -uf "${JAVA_JAR_FILENAME}" -C "${classes}" . || -- cgit v1.2.3-65-gdbad