Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 922157 | Differences between
and this patch

Collapse All | Expand All

(-)a/eclass/java-pkg-simple.eclass (-5 / +6 lines)
Lines 367-373 java-pkg-simple_src_compile() { Link Here
367
	# gather sources
367
	# gather sources
368
	# if target < 9, we need to compile module-info.java separately
368
	# if target < 9, we need to compile module-info.java separately
369
	# as this feature is not supported before Java 9
369
	# as this feature is not supported before Java 9
370
	if [[ $(java-pkg_get-target) -lt 9 ]]; then
370
	local target="$(java-pkg_get-target)"
371
	if [[ ${target#1.} -lt 9 ]]; then
371
		find "${JAVA_SRC_DIR[@]}" -name \*.java ! -name module-info.java > ${sources}
372
		find "${JAVA_SRC_DIR[@]}" -name \*.java ! -name module-info.java > ${sources}
372
		moduleinfo=$(find "${JAVA_SRC_DIR[@]}" -name module-info.java)
373
		moduleinfo=$(find "${JAVA_SRC_DIR[@]}" -name module-info.java)
373
	else
374
	else
Lines 382-388 java-pkg-simple_src_compile() { Link Here
382
	java-pkg-simple_getclasspath
383
	java-pkg-simple_getclasspath
383
	java-pkg-simple_prepend_resources ${classes} "${JAVA_RESOURCE_DIRS[@]}"
384
	java-pkg-simple_prepend_resources ${classes} "${JAVA_RESOURCE_DIRS[@]}"
384
385
385
	if [[ -n ${moduleinfo} ]] || [[ $(java-pkg_get-target) -lt 9 ]]; then
386
	if [[ -n ${moduleinfo} ]] || [[ ${target#1.} -lt 9 ]]; then
386
		ejavac -d ${classes} -encoding ${JAVA_ENCODING}\
387
		ejavac -d ${classes} -encoding ${JAVA_ENCODING}\
387
			${classpath:+-classpath ${classpath}} ${JAVAC_ARGS} @${sources}
388
			${classpath:+-classpath ${classpath}} ${JAVAC_ARGS} @${sources}
388
	else
389
	else
Lines 528-534 java-pkg-simple_src_test() { Link Here
528
	# gathering sources for testing
529
	# gathering sources for testing
529
	# if target < 9, we need to compile module-info.java separately
530
	# if target < 9, we need to compile module-info.java separately
530
	# as this feature is not supported before Java 9
531
	# as this feature is not supported before Java 9
531
	if [[ $(java-pkg_get-target) -lt 9 ]]; then
532
	local target="$(java-pkg_get-target)"
533
	if [[ ${target#1.} -lt 9 ]]; then
532
		find "${JAVA_TEST_SRC_DIR[@]}" -name \*.java ! -name module-info.java > ${test_sources}
534
		find "${JAVA_TEST_SRC_DIR[@]}" -name \*.java ! -name module-info.java > ${test_sources}
533
		moduleinfo=$(find "${JAVA_TEST_SRC_DIR[@]}" -name module-info.java)
535
		moduleinfo=$(find "${JAVA_TEST_SRC_DIR[@]}" -name module-info.java)
534
	else
536
	else
Lines 537-543 java-pkg-simple_src_test() { Link Here
537
539
538
	# compile
540
	# compile
539
	if [[ -s ${test_sources} ]]; then
541
	if [[ -s ${test_sources} ]]; then
540
		if [[ -n ${moduleinfo} ]] || [[ $(java-pkg_get-target) -lt 9 ]]; then
542
		if [[ -n ${moduleinfo} ]] || [[ ${target#1.} -lt 9 ]]; then
541
			ejavac -d ${classes} -encoding ${JAVA_ENCODING}\
543
			ejavac -d ${classes} -encoding ${JAVA_ENCODING}\
542
				${classpath:+-classpath ${classpath}} ${JAVAC_ARGS} @${test_sources}
544
				${classpath:+-classpath ${classpath}} ${JAVAC_ARGS} @${test_sources}
543
		else
545
		else
544
- 

Return to bug 922157