#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.17 2007/01/25 23:02:55 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.18 2007/01/28 19:53:17 betelgeuse Exp $
inherit java-utils-2
# ------------------------------------------------------------------------------
java-pkg-2_src_compile() {
if [[ -e "${EANT_BUILD_XML:=build.xml}" ]]; then
+ if ! hasq java-ant-2 ${INHERITED}; then
+ msg="You should inherit java-ant-2 always when using eant"
+ ewarn ${msg}
+ is-java-strict && die ${msg}
+ fi
[[ "${EANT_FILTER_COMPILER}" ]] && \
java-pkg_filter-compiler ${EANT_FILTER_COMPILER}
ANT_TASKS="${ANT_TASKS} ${EANT_ANT_TASKS}" \
eant ${antflags} -f "${EANT_BUILD_XML}" ${EANT_EXTRA_ARGS} "${@}"
else
- echo "${FUNCNAME}: No build.xml found so nothing to do."
+ echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do."
fi
}