diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-10-09 19:57:42 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-10-18 09:46:32 +0200 |
commit | 5f231202e9ad571835518f33075340ee2f60c7d8 (patch) | |
tree | afdb3085655f2b91017dd0c99ac6d57f3eb627ae /eclass/java-pkg-simple.eclass | |
parent | java-utils-2.eclass: allow etestng to run testng.xml (diff) | |
download | gentoo-5f231202e9ad571835518f33075340ee2f60c7d8.tar.gz gentoo-5f231202e9ad571835518f33075340ee2f60c7d8.tar.bz2 gentoo-5f231202e9ad571835518f33075340ee2f60c7d8.zip |
java-pkg-simple.eclass: avoid removal of generated test classes
Solution of bug #906311 removes all test classes at beginning of
src_test() including test classes generated from the ebuild.
With this commit generated test classes will be copied from the new
generated-test directory into target/test-classes.
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass/java-pkg-simple.eclass')
-rw-r--r-- | eclass/java-pkg-simple.eclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index 02200f10cb8d..98affc522295 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -506,6 +506,11 @@ java-pkg-simple_src_test() { # create the target directory mkdir -p ${classes} || die "Could not create target directory for testing" + # generated test classes should get generated into "generated-test" directory + if [[ -d generated-test ]]; then + cp -r generated-test/* "${classes}" || die "cannot copy generated test classes" + fi + # get classpath classpath="${classes}:${JAVA_JAR_FILENAME}" java-pkg-simple_getclasspath |