/[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.22 Revision 1.23
12# and xml-rewrite.py because they were so slow 12# and xml-rewrite.py because they were so slow
13# Petteri Räty (betelgeuse@gentoo.org) 13# Petteri Räty (betelgeuse@gentoo.org)
14# 14#
15# Licensed under the GNU General Public License, v2 15# Licensed under the GNU General Public License, v2
16# 16#
17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.22 2007/06/01 12:49:03 betelgeuse Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.23 2007/08/05 08:17:05 betelgeuse Exp $
18 18
19inherit java-utils-2 19inherit java-utils-2
20 20
21# This eclass provides functionality for Java packages which use 21# This eclass provides functionality for Java packages which use
22# ant to build. In particular, it will attempt to fix build.xml files, so that 22# ant to build. In particular, it will attempt to fix build.xml files, so that
124# default: javacdoc javac xjavac javac.preset 124# default: javacdoc javac xjavac javac.preset
125# ------------------------------------------------------------------------------ 125# ------------------------------------------------------------------------------
126JAVA_PKG_BSFIX_SOURCE_TAGS=${JAVA_PKG_BSFIX_SOURCE_TAGS:-"javadoc javac xjavac javac.preset"} 126JAVA_PKG_BSFIX_SOURCE_TAGS=${JAVA_PKG_BSFIX_SOURCE_TAGS:-"javadoc javac xjavac javac.preset"}
127 127
128# ------------------------------------------------------------------------------ 128# ------------------------------------------------------------------------------
129# @public java-ant_src_unpack
130#
131# Unpacks the source, and attempts to fix build files.
132# variable JAVA_ANT_IGNORE_SYSTEM_CLASSES: 129# @global JAVA_ANT_IGNORE_SYSTEM_CLASSES
133# ignore ant classpath in available tasks
134# ------------------------------------------------------------------------------
135post_src_unpack() {
136 if java-pkg_func-exists ant_src_unpack; then
137 die "ant_src_unpack is no longer support, should use just src_unpack"
138 fi
139 java-ant_bsfix
140 [[ "${JAVA_ANT_IGNORE_SYSTEM_CLASSES}" ]] \
141 && java-ant_ignore-system-classes "${S}/build.xml"
142}
143
144# ------------------------------------------------------------------------------
145# @private ant_src_unpack
146# 130#
147# Helper function which does the actual unpacking 131# Rewrites available tasks to ignore ant classpath.
132#
133# default: off
148# ------------------------------------------------------------------------------ 134# ------------------------------------------------------------------------------
149# TODO maybe use base.eclass for some patching love?
150#ant_src_unpack() {
151# debug-print-function ${FUNCNAME} $*
152# if [[ -n "${A}" ]]; then
153# unpack ${A}
154# fi
155#}
156 135
157# ------------------------------------------------------------------------------ 136# ------------------------------------------------------------------------------
158# @private java-ant_bsfix 137# @private java-ant_bsfix
159# 138#
160# Attempts to fix build files. The following variables will affect its behavior 139# Attempts to fix build files. The following variables will affect its behavior

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20