diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-28 20:04:59 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-28 20:04:59 +0000 |
commit | fc516c6d21dd9770bd841b3158212d23d2900eb0 (patch) | |
tree | 243ab9acd37acb5f1da0f08964dd3d36695cd314 /eclass/java-utils-2.eclass | |
parent | Initial import. Thanks to everyone on bug #112887. (diff) | |
download | historical-fc516c6d21dd9770bd841b3158212d23d2900eb0.tar.gz historical-fc516c6d21dd9770bd841b3158212d23d2900eb0.tar.bz2 historical-fc516c6d21dd9770bd841b3158212d23d2900eb0.zip |
Move inherit java-ant-2 check to eant itself from the generic src_compile in java-pkg-2.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 7f954c11ab2d..dbacd83db3dd 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.50 2007/01/26 20:24:23 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.51 2007/01/28 20:04:59 betelgeuse Exp $ # ----------------------------------------------------------------------------- @@ -1541,6 +1541,12 @@ eant() { # "Using eant, but not depending on dev-java/ant or dev-java/ant-core" # fi + if ! hasq java-ant-2 ${INHERITED} && is-java-strict; then + msg="You should inherit java-ant-2 when using eant" + java-pkg_announce-qa-violation ${msg} + die ${msg} + fi + local antflags="-Dnoget=true -Dmaven.mode.offline=true" java-pkg_init-compiler_ local compiler="${GENTOO_COMPILER}" |