mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
dev-java/auto-value: call ejavac with sources file instead of array
This avoids bloating the build log. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/44601 Closes: https://github.com/gentoo/gentoo/pull/44601 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
parent
f52eb2adb9
commit
498a0b203c
@ -108,18 +108,18 @@ src_compile() {
|
||||
cp="${cp}:$(java-pkg_getjars --build-only checker-framework-qual,error-prone-annotations)"
|
||||
cp="${cp}:$(java-pkg_getjars escapevelocity,guava,incap,javapoet,jspecify)"
|
||||
|
||||
local sources=$(find \
|
||||
find \
|
||||
common/src/main/java \
|
||||
service/annotations/src/main/java \
|
||||
service/processor/src/main/java \
|
||||
value/src/main/java \
|
||||
-name '*.java') || die "gather sources"
|
||||
-name '*.java' > sources.lst || die "gather sources"
|
||||
|
||||
einfo "compile them all"
|
||||
mkdir -p target/classes || die "mkdir target/classes" # still needed for openjdk-8
|
||||
ejavac -d target/classes -classpath "${cp}" ${sources[@]}
|
||||
ejavac -d target/classes -classpath "${cp}" @sources.lst
|
||||
|
||||
use doc && ejavadoc -d target/api -classpath "${cp}" -quiet ${sources[@]}
|
||||
use doc && ejavadoc -d target/api -classpath "${cp}" -quiet @sources.lst
|
||||
|
||||
einfo "package auto-value-annotations"
|
||||
# according to value/annotations/pom.xml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user