/[gentoo-x86]/eclass/java-ant-2.eclass
Gentoo

Diff of /eclass/java-ant-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
8# and xml-rewrite.py because they were so slow 8# and xml-rewrite.py because they were so slow
9# Petteri Räty (betelgeuse@gentoo.org) 9# Petteri Räty (betelgeuse@gentoo.org)
10# 10#
11# Licensed under the GNU General Public License, v2 11# Licensed under the GNU General Public License, v2
12# 12#
13# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.13 2007/01/20 22:27:34 betelgeuse Exp $ 13# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.14 2007/01/21 01:20:21 caster Exp $
14 14
15inherit java-utils-2 15inherit java-utils-2
16 16
17# This eclass provides functionality for Java packages which use 17# This eclass provides functionality for Java packages which use
18# ant to build. In particular, it will attempt to fix build.xml files, so that 18# ant to build. In particular, it will attempt to fix build.xml files, so that
19# they use the appropriate 'target' and 'source' attributes. 19# they use the appropriate 'target' and 'source' attributes.
20 20
21# -----------------------------------------------------------------------------
22# @variable-preinherit WANT_ANT_TASKS
23# @variable-default ""
24#
25# Please see the description in java-utils-2.eclass.
26#WANT_ANT_TASKS
27
21# We need some tools from javatoolkit. We also need portage 2.1 for phase hooks 28# We need some tools from javatoolkit. We also need portage 2.1 for phase hooks
22DEPEND=">=dev-java/javatoolkit-0.1.5 ${JAVA_PKG_PORTAGE_DEP}" 29DEPEND=">=dev-java/javatoolkit-0.1.5 ${JAVA_PKG_PORTAGE_DEP}"
30# add ant-core into DEPEND, unless disabled
23[[ "${JAVA_ANT_DISABLE_ANT_CORE_DEP:-true}" ]] || DEPEND="${DEPEND} dev-java/ant-core" 31[[ "${JAVA_ANT_DISABLE_ANT_CORE_DEP:-true}" ]] || DEPEND="${DEPEND} dev-java/ant-core"
32# add ant tasks specified in WANT_ANT_TASKS to DEPEND
33local ANT_TASKS_DEPEND;
34ANT_TASKS_DEPEND="$(java-pkg_ant-tasks-depend)"
35# check that java-pkg_ant-tasks-depend didn't fail
36if [[ $? != 0 ]]; then
37 eerror "${ANT_TASKS_DEPEND}"
38 die "java-pkg_ant-tasks-depend() failed"
39fi
40DEPEND="${DEPEND} ${ANT_TASKS_DEPEND}"
24 41
25# ------------------------------------------------------------------------------ 42# ------------------------------------------------------------------------------
26# @global JAVA_PKG_BSFIX 43# @global JAVA_PKG_BSFIX
27# 44#
28# Should we attempt to 'fix' ant build files to include the source/target 45# Should we attempt to 'fix' ant build files to include the source/target

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20