/[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.12 Revision 1.13
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.12 2007/01/12 14:03:16 betelgeuse Exp $ 13# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.13 2007/01/20 22:27:34 betelgeuse 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# We need some tools from javatoolkit. We also need portage 2.1 for phase hooks 21# 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}" 22DEPEND=">=dev-java/javatoolkit-0.1.5 ${JAVA_PKG_PORTAGE_DEP}"
23[[ "${JAVA_ANT_DISABLE_ANT_CORE_DEP:-true}" ]] || DEPEND="${DEPEND} dev-java/ant-core"
23 24
24# ------------------------------------------------------------------------------ 25# ------------------------------------------------------------------------------
25# @global JAVA_PKG_BSFIX 26# @global JAVA_PKG_BSFIX
26# 27#
27# Should we attempt to 'fix' ant build files to include the source/target 28# Should we attempt to 'fix' ant build files to include the source/target
69 70
70# ------------------------------------------------------------------------------ 71# ------------------------------------------------------------------------------
71# @public java-ant_src_unpack 72# @public java-ant_src_unpack
72# 73#
73# Unpacks the source, and attempts to fix build files. 74# Unpacks the source, and attempts to fix build files.
75# variable JAVA_ANT_IGNORE_SYSTEM_CLASSES:
76# ignore ant classpath in available tasks
74# ------------------------------------------------------------------------------ 77# ------------------------------------------------------------------------------
75post_src_unpack() { 78post_src_unpack() {
76 if java-pkg_func-exists ant_src_unpack; then 79 if java-pkg_func-exists ant_src_unpack; then
77 java-pkg_announce-qa-violation "Using old ant_src_unpack. Should be src_unpack" 80 java-pkg_announce-qa-violation "Using old ant_src_unpack. Should be src_unpack"
78 ant_src_unpack 81 ant_src_unpack
79 fi 82 fi
80 java-ant_bsfix 83 java-ant_bsfix
84 [[ "${JAVA_ANT_IGNORE_SYSTEM_CLASSES}" ]] \
85 && java-ant_ignore-system-classes "${S}/build.xml"
81} 86}
82 87
83# ------------------------------------------------------------------------------ 88# ------------------------------------------------------------------------------
84# @private ant_src_unpack 89# @private ant_src_unpack
85# 90#

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

  ViewVC Help
Powered by ViewVC 1.1.20