summaryrefslogtreecommitdiff
path: root/eclass/java-utils-2.eclass
AgeCommit message (Collapse)Author
2021-09-21java-utils-2.eclass: Fix incorrect multi-line @RETURN in docMichał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2021-08-12java-utils-2.eclass: remove redundant / from CLASSPATH.Benda Xu
JAVA_PKG_JARDEST always has a leading /. Signed-off-by: Benda Xu <heroxbd@gentoo.org> Reference: https://archives.gentoo.org/gentoo-dev/message/96db539ae412aab36491987d4e424dd3
2021-07-03java-utils-2.eclass: added support for parsing args to testsMiroslav Šulc
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2021-07-02java-utils-2.eclass: fixed a typoMiroslav Šulc
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2021-06-21java-utils-2.eclass: fix @SUPPORTED_EAPIS eclassdocSam James
Signed-off-by: Sam James <sam@gentoo.org>
2021-06-20java-utils-2.eclass: [QA] add EAPI guardSam James
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
2021-03-31java-utils-2.eclass: fix @RETURN syntaxSam James
Signed-off-by: Sam James <sam@gentoo.org>
2021-03-31java-utils-2.eclass: drop non-existent @DESCRIPTION for functionSam James
Signed-off-by: Sam James <sam@gentoo.org>
2020-12-28eclass: [QA] Revert multiple meaningless doc changesMichał Górny
Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-12-15eclass/java-utils-2: fixup documentationAaron Bauman
Signed-off-by: Aaron Bauman <bman@gentoo.org>
2020-08-30java-pkg-simple.eclass and java-utils-2.eclass: features and enhancementsZhang Zongyu
1) support java resources 2) support java main class and launcher 3) enable java-pkg-simple_src_test() 4) support binary jars (both for resolve circular deps and for pkgdiff test) Signed-off-by: Zhang Zongyu <zzy2529420793@gmail.com> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2020-03-31java-utils-2.eclass: minor @USAGE fixBen Kohler
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
2019-12-12java-utils-2.eclass: Add RESTRICT="!test? ( test )"Michał Górny
Add RESTRICT="!test? ( test )" when the ebuild specified JAVA_PKG_IUSE="test". This fixes further 100 MissingTestRestrict cases. Signed-off-by: Michał Górny <mgorny@gentoo.org>
2019-10-30eclass/java-{ant,utils}: updated for new javatoolkit layoutMiroslav Šulc
Bug: https://bugs.gentoo.org/627440 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2019-03-09java-utils-2.eclass: Inherit eutils, multilib in EAPI [0123456] onlyAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2019-03-09eclass/java-utils-2: bump to EAPI 7.Marty E. Plummer
Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Closes: https://github.com/gentoo/gentoo/pull/11243 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2019-01-21java-utils-2.eclass: fix for >=dev-java/ant-core-1.9.13Miroslav Šulc
ant does not like double quotes around classpath (bug #676002) Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2018-11-12java-utils-2.eclass: Drop sys-apps/portage build dependencyJames Le Cuirot
It originates from 2006 and should arguably have never been added. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2018-10-24java-utils-2: Replace java-config VM handling with eselect-javaJames Le Cuirot
The VM handling options are deprecated. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2017-12-29java-utils-2.eclass: Fix java-pkg_gen-cp regex for chained PV suffixesJames Le Cuirot
2017-02-28Drop $Id$ per council decision in bug #611234.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2017-02-22eclass/java-utils-2.eclass: Convert the few remaining bits to EAPI 6.Patrice Clement
2017-02-09java-utils-2.eclass: use is not available in the global scope.Benda Xu
Java ebuilds using EAPI<3 will not be correctly prefixified. We will deal with that by bumping EAPI per package.
2017-02-09eclass/java-utils-2.eclass: support Prefix.Benda Xu
Reintroduce fbdddd87ff9 with EAPI gatekeeping code. Credit: Martin Mokrejš Bug: 595002
2017-02-09Revert "eclass/java-utils-2.eclass: support Prefix."James Le Cuirot
This reverts commit fbdddd87ff997e74644c2d5feb56c2e2d915860b. It didn't take account of older EAPIs.
2017-02-09eclass/java-utils-2.eclass: support Prefix.Benda Xu
Credit: Martin Mokrejš Bug: 595002
2016-10-17java-utils-2.eclass: Call eapply_user and drop java_prepare for EAPI 6James Le Cuirot
Although simply calling default sounds like a good idea, if an ebuild needs to use multiple eclasses that call default then patching will break as PATCHES will be applied more than once. eapply_user, on the other hand, is idempotent. If an ebuild needs to apply PATCHES then it should define src_prepare and call default explicitly. This will probably be improved in EAPI 7. java_prepare is being dropped because non-Java people find it confusing and it isn't consistent. Other eclasses don't do this and we don't apply the same rule to other phases either.
2016-10-17java-utils-2.eclass: Remove reference to long dead ant_src_unpackJames Le Cuirot
2016-10-17java-utils-2.eclass: Rework wltjr's new java-pkg_gen-cpJames Le Cuirot
* Use an accurate regexp rather than naive string manipulation. * Join the entries with , for a single call to java-config. * Don't export the given variable as we haven't previously. * die if the atom is invalid, particularly if the SLOT is missing. * Avoid adding duplicates because this may get called more than once.
2016-10-17java-utils-2.eclass: Added new function java-pkg_gen-cpWilliam L. Thomson Jr
Java package generate classpath will create a classpath based on special variable CP_DEPEND in the ebuild. This allows for automatic classpath creation based on depends. Reduces chance of error in ebuild with slots in deps not matching slots in classpath variable, etc. Not to most elegant. Elected for multiple passes using bash vs external sed or awk. Closes: https://github.com/gentoo/gentoo/pull/2286 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2016-05-14java-utils-2.eclass: DESTTREE querying -> /usr, #566480Michał Górny
2016-05-14java-utils-2.eclass: DESTTREE assignment -> into, #566480Michał Górny
2016-05-14java-utils-2.eclass: Use insinto & insopts instead of vars, #566480Michał Górny
Replace INSDESTTREE and INSOPTIONS internal variable references with correct calls to insinto & insopts, using a subshell to scope them.
2016-04-19java-*.eclass: Bump java-config dependency to avoid bug #580504James Le Cuirot
People may remove java-config-wrapper without updating java-config, leading to a broken setup.
2016-02-22eclass/java-utils-2.eclass: Added -r to xargs in java-pkg_addresWilliam L. Thomson Jr
The -r option is necessary in case find does not output anything. Which makes the jar uf command fail. This has no effect otherwise and should be safe to add right away. It prevents potential issues/bug.
2016-02-10java-utils-2.eclass: Write package.env unconditionallyJames Le Cuirot
Fixes dev-db/sqldeveloper-4.1.3.20.78-r1. This is a case where all the jars are installed without dojar and none of the dependencies are mandatory. Although our regular launcher scripts aren't used, gjl is still invoked to determine the appropriate JVM so package.env is therefore necessary. The conditions didn't make much sense anyway as package.env is only written off the back of functions that satisfy them anyway. sqldeveloper has to call java-pkg_do_write_ manually to force package.env to be written.
2015-12-04java-utils-2.eclass: Don't leave junk in /tmp after ejunit callsJames Le Cuirot
Put the junk in ${T} instead.
2015-10-25java-utils-2.eclass: add missing '|| die' on pushd/popdJulian Ospald
Reviewed-By: James Le Cuirot <chewi@gentoo.org> Reviewed-By: Patrice Clement <monsieurp@gentoo.org>
2015-10-20java-utils-2.eclass: Remove eend calls. Remove javadoc_executable variable.Patrice Clement
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2015-10-20java-utils-2.eclass: Also improve java-pkg_do{javadoc,jar,src} logging.Patrice Clement
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2015-10-20java-utils-2.eclass: Document JAVA_PKG_DEBUG variable. Tweak logging ↵Patrice Clement
according to JAVA_PKG_DEBUG in ejavac and ejavadoc. Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2015-10-05fix broken headers in a few random filesMike Frysinger
2015-10-03java-utils-2.eclass: Fix this untested java-pkg_clean crapJames Le Cuirot
2015-09-29eclass/java-utils-2: Allows a list of directories to be specified.Patrice Clement
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2015-09-29Merge remote-tracking branch 'remotes/github/pr/116'.Patrice Clement
2015-09-25eclass: gentoo.org has https per defaultJustin Lecher
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2015-09-21eclass/java-utils-2: Added proposed function to remove *.class and *.jar ↵William L. Thomson Jr
files from sources. Long term should be called automatically all the time with optional override via JAVA_PKG_NO_CLEAN.
2015-09-04java-utils-2.eclass: Make java-pkg_init-compiler_ output to stderrJames Le Cuirot
It was corrupting the result of java-pkg_get-javac in rare cases. Fixes bug #559230.
2015-08-08proj/gentoo: Initial commitRobin H. Johnson
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed