commit:     f5ac6dc71047d73b74fdc6fd7fb9acff6a3a5031
Author:     William L. Thomson Jr <wlt <AT> o-sinc <DOT> com>
AuthorDate: Fri Sep  9 23:22:45 2016 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Oct 17 15:15:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5ac6dc7

java-pkg-2.eclass: Implemented auto classpath

Added call to java-pkg_gen-cp EANT_GENTOO_CLASSPATH in
java-pkg-2_src_compile. This has no effect unless CP_DEPEND is set in an
ebuild.

Closes: https://github.com/gentoo/gentoo/pull/2286
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 eclass/java-pkg-2.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/java-pkg-2.eclass b/eclass/java-pkg-2.eclass
index 6b77066..8a65784 100644
--- a/eclass/java-pkg-2.eclass
+++ b/eclass/java-pkg-2.eclass
@@ -76,6 +76,9 @@ java-pkg-2_src_prepare() {
 
 java-pkg-2_src_compile() {
        if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
+               # auto generate classpath
+               java-pkg_gen-cp EANT_GENTOO_CLASSPATH
+
                [[ "${EANT_FILTER_COMPILER}" ]] && \
                        java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
                local antflags="${EANT_BUILD_TARGET:=jar}"

Reply via email to