summaryrefslogtreecommitdiff
path: root/eclass/java-utils-2.eclass
AgeCommit message (Collapse)Author
2025-10-03java-utils-2.eclass: re-enable PORTAGE_QUIETVolkmar W. Pogatzki
There are packages like javacup and jflex which cannot be built from source without using a pre-built runtime version of itself. Re-emerging these packages using the installed instead of the bundled pre-built version was causing the java-pkg_getjar() function to trigger java-pkg_ensure-dep() to issue a "QA Notice: java-pkg_ensure-dep:" message. This commit ports the PORTAGE_QUIET variable to java-pkg_getjar() so that it works again as it did in the past for ant-based ebuilds. Bug: https://bugs.gentoo.org/937047 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/44017 Signed-off-by: Sam James <sam@gentoo.org>
2025-08-13java-utils-2.eclass: drop EAPI 7Volkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/43246 Closes: https://github.com/gentoo/gentoo/pull/43246 Signed-off-by: Sam James <sam@gentoo.org>
2025-07-10java-utils-2.eclass: automatic dependency on java-dep-checkVolkmar W. Pogatzki
When emerging a java package with JAVA_PKG_STRICT enabled, there are messages telling the user to install java-dep-check and javatoolkit for running further checks: "Install dev-java/java-dep-check for dependency checking" "Unable to perform class version checks as" "class-version-verify.py is unavailable" "Please install dev-java/javatoolkit." This commit adds both java-dep-check and javatoolkit to BDEPEND. To avoid circular dependencies with java-dep-check, it also adds a new eclass variable JAVA_DISABLE_DEPEND_ON_JAVA_DEP_CHECK to be put pre-inherit to dependencies of java-dep-check. Closes: https://bugs.gentoo.org/831341 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/42182 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-12-06java-utils-2.eclass: add some missing documentationVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/ea4b4f6f7397d8be1ccc99aa7baeea87fda0f90a Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-12-06java-utils-2.eclass: remove unused and undocumented functionsVolkmar W. Pogatzki
removes the undocumented eclass functions: - java-pkg_jar-list - increment-qa-violations Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/5792412f99de65ec392f765cd4bd3585b53bb8fe Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-12-06java-utils-2.eclass: drop -Dtest.resources.dir from etestng()Volkmar W. Pogatzki
This property is specific to dev-java/testng. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39233/commits/6b4df3a589a5ef516c9b2915e611fd46df8d354e Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-11-05java-utils-2.eclass: remove reference to java-ant-2.eclassVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-10-30java-utils-2.eclass: remove undocumented unused functionVolkmar W. Pogatzki
Removes java-pkg_set-current-vm Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38836 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-10-08eclass: canonicalize debug-print-function callsDavid Seifert
Closes: https://github.com/gentoo/gentoo/pull/37652 Signed-off-by: David Seifert <soap@gentoo.org>
2024-10-08java-utils-2.eclass: drop support for EAPI 6David Seifert
Signed-off-by: David Seifert <soap@gentoo.org>
2024-10-02java-utils-2.eclass: add some missing function descriptionsVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38559 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-10-02java-utils-2.eclass: stop mentioning java-ant-2 eclassVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-10-02java-utils-2.eclass: remove java-pkg_check-jikesVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-09-10java-utils-2.eclass: remove unused eclass fuction use_docVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38544 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-09-10java-utils-2.eclass: mark function use_doc as deprecatedVolkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37338 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-09-08java-utils-2.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2024-09-01java-utils-2.eclass: remove 'ant -lib' from comment of java-pkg_jarfromVolkmar W. Pogatzki
since it is already advised to not use it Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-08-01java-utils-2.eclass: etestng use java-pkg_getjars --build-onlyVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/936812 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37772/commits/513f82dafdb7874b77da408068e9b2e90bfe0c36 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-07-28java-utils-2.eclass: select java-config binary, prefer java-config over ↵Florian Schmaus
java-config-2 This prepares the eclass for the transition from /usr/bin/java-config-2 to /usr/bin/java-config. Starting with dev-java/java-config-2.3.3, the java-config utility is installed as java-config and the java-config-2 compatibility symlink will only be installed if the 'compat' USE flag is enabled (currently the default). Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-07-26java-utils-2.eclass: fix ejunit_(), java-pkg_getjars --build-onlyVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/936557 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37718 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-28java-utils-2.eclass: allow eant without java-ant-2_src_configureVolkmar W. Pogatzki
Packages which can build without BSFIX need not inherit java-ant-2. To allow using eant without inheriting java-ant-2 we enhance the eant function with a condition which controls calling java-ant-2_src_configure. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37022/commits/6ebf29fc691b6e38c8bf263eec2313d611298d25 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-26java-utils-2.eclass: add --runtime-only argument to java-pkg_getjarsFlorian Schmaus
Some packages only need the jar at runtime, not at compile time. For example https://bugs.gentoo.org/934659#c2 Bug: https://bugs.gentoo.org/934659 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-06-14Revert "java-utils-2.eclass: eerror if java-utils-2 is inherited directly"Volkmar W. Pogatzki
This reverts commit 41faa907e3a36f4ed00aced3499d469abb865281. Bug: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37156 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-14java-utils-2.eclass: drop redundant java-pkg_get-current-vm()Volkmar W. Pogatzki
Removes the first of two different versions of java-pkg_get-current-vm() Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/35287 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-14java-utils-2.eclass: eerror if java-utils-2 is inherited directlyVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-14java-utils-2.eclass: improve message of java-pkg_dieVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/591142 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-14java-utils-2.eclass: prepend "QA Notice" to eqawarnVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/813342 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-06-14java-utils-2.eclass: solve Unexpected tag in "funcvar" stateVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/637768 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-01-20java-utils-2.eclass: default to default_src_prepare for future EAPIVolkmar W. Pogatzki
Presently patches from a PATCHES array are not getting applied unless "default" or "eapply_user" is set in the ebuild. In cases where nothing else needs to be prepared it still needs src_prepare in the ebuild src_prepare() { default } With this change, starting from EAPI 9 this will no longer be needed. In cases where any other changes are done in the prepare phase it would only need java-pkg-2_src_prepare be added: src_prepare() { java-pkg-2_src_prepare cp, rm, mv, sed or other changes } Bug: https://bugs.gentoo.org/780585 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/34897 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-01-11java-utils-2.eclass: enhance ejavadocVolkmar W. Pogatzki
This patch enhances the ejavadoc function so that it can be called without arguments if the JAVADOC_SRC_DIRS array is set in the ebuild. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2024-01-11java-utils-2.eclass: new JAVADOC_CLASSPATH, JAVADOC_SRC_DIRSVolkmar W. Pogatzki
Several multi-jar packages built with java-pkg-simple.eclass use a workaround to avoid passing arguments to ejavadoc. That workaround runs another java-pkg-simple_src_compile which builds an unneeded jar file usually called "ignoreme.jar". This patch defines the JAVADOC_SRC_DIRS eclass variable needed by the java-pkg-simple.eclass to decide whether to call ejavadoc or not. The other new eclass variable is JAVADOC_CLASSPATH. It can be used for multi-jar packages to pass dependencies's classpath to ejavadoc. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-12-09java-utils-2.eclass: Drop redundant EAPI conditionalsUlrich Müller
Use standard EAPI guard. Inherit eqawarn instead of eutils in EAPI 6. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2023-11-14java-utils-2.eclass: record LIBDIR in package.envFlorian Schmaus
Bug: https://bugs.gentoo.org/917326 Closes: https://github.com/gentoo/gentoo/pull/33821 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2023-10-18java-utils-2.eclass: avoid reverse dependency for dev-java/testngVolkmar W. Pogatzki
This change depends on the correlating change on the java-pkg-simple.eclass. For testing dev-java/testng before having it installed it is not possible to use java-pkg_getjars. This change adds a condition so that this case uses the freshly compiled testng.jar. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29733 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-10-18java-utils-2.eclass: allow etestng to run testng.xmlVolkmar W. Pogatzki
The etestng function is presently limited to running test classes and has no option for running testng.xml files. Using testng.xml in an ebuild requires manual coding in src_test(). This change adds a switch to the etestng function which allows running default src_test() with either testng.xml files or test classes. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-09-16java-utils-2.eclass: fix EclassDocMissingFuncVolkmar W. Pogatzki
Closes: https://bugs.gentoo.org/900509 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/30078 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2023-09-14java-utils-2.eclass: fix Unquoted VariableArthur Zamarin
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-03-26java-utils-2.eclass: fix spellingSam James
Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2023-02-17java-utils-2.eclass: use find with -path instead of -wholenameVolkmar W. Pogatzki
according to man page, -wholename is less portable than -path. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29626 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-02-17java-utils-2.eclass: default to default_src_prepare for future EAPIVolkmar W. Pogatzki
Presently patches from a PATCHES array are not getting applied unless "default" or "eapply_user" is set in the ebuild. In cases where nothing else needs to be prepared it still needs src_prepare in the ebuild src_prepare() { default } With this change, starting from EAPI 9 this will no longer be needed. In cases where any other changes are done in the prepare phase it would only need java-pkg-2_src_prepare be added: src_prepare() { java-pkg-2_src_prepare cp, rm, mv, sed or other changes } Bug: https://bugs.gentoo.org/780585 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-02-17java-utils-2.eclass: drop support for EAPI 5Volkmar W. Pogatzki
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29556 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-02-17java-utils-2.eclass: default to java-pkg_clean for future EAPIVolkmar W. Pogatzki
Bug: https://bugs.gentoo.org/797733 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2023-02-10java-utils-2.eclass: ECLASS_VARIABLE JAVA_PKG_NO_CLEANVolkmar W. Pogatzki
The new ECLASS_VARIABLE JAVA_PKG_NO_CLEAN is an array of expressions to match *.class or *.jar files in order to protect them against deletion by java-pkg_clean. This change helps in cases where most bundled *.class or *.jar files can be deleted while only some few cannot be replaced with system libraries. It also helps to visualize bundled stuff in the ebuild. Cleaning does not work by default. It still needs java-pkg_clean within src_prepare(). Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29470 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2022-07-11java-utils-2.eclass: drop pointless eend callMike Gilbert
Closes: https://bugs.gentoo.org/842675 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2022-07-04eclass/java-utils-2.eclass: make testng output more verboseVolkmar W. Pogatzki
Bug: https://bugs.gentoo.org/801694 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26118 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2022-06-22java-utils-2.eclass: Use @ECLASS_VARIABLEMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2022-05-02eclass/java-utils-2.eclass: drop gnu-classpathVolkmar W. Pogatzki
Bug: https://bugs.gentoo.org/786093 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21218 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2022-04-27java-utils-2.eclass: introduce JAVA_TEST_RUNNER_EXTRA_ARGSFlorian Schmaus
Also add special handling wrt -usedfaultlisteners for TestNG, see bug #801694. Co-authored-by: Miroslav Šulc <fordfrog@gentoo.org> Bug: https://bugs.gentoo.org/801694 Closes: https://github.com/gentoo/gentoo/pull/2512 Signed-off-by: Florian Schmaus <flow@gentoo.org>
2022-04-15java-utils-2.eclass: remove ebegin calls that lack eend callsMike Gilbert
Instead, echo the command we are about to run. Closes: https://bugs.gentoo.org/838475 Closes: https://bugs.gentoo.org/838478 Closes: https://bugs.gentoo.org/838481 Closes: https://bugs.gentoo.org/838487 Closes: https://bugs.gentoo.org/838490 Closes: https://bugs.gentoo.org/838493 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2022-03-24*.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller
Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>