/[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.28 Revision 1.29
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.28 2008/01/27 03:37:49 betelgeuse Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.29 2008/02/13 19:44:15 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
267 if [[ -n ${JAVA_ANT_JAVADOC_INPUT_DIRS} ]]; then 267 if [[ -n ${JAVA_ANT_JAVADOC_INPUT_DIRS} ]]; then
268 if [[ -n ${JAVA_ANT_JAVADOC_OUTPUT_DIR} ]]; then 268 if [[ -n ${JAVA_ANT_JAVADOC_OUTPUT_DIR} ]]; then
269 die "Do not define JAVA_ANT_JAVADOC_OUTPUT_DIR!" 269 die "Do not define JAVA_ANT_JAVADOC_OUTPUT_DIR!"
270 fi 270 fi
271 # Where will our generated javadoc go. 271 # Where will our generated javadoc go.
272 readonly JAVA_ANT_JAVADOC_OUTPUT_DIR=${WORKDIR}/gentoo_javadoc 272 readonly JAVA_ANT_JAVADOC_OUTPUT_DIR="${WORKDIR}/gentoo_javadoc"
273 mkdir -p "${JAVA_ANT_JAVADOC_OUTPUT_DIR}" || die 273 mkdir -p "${JAVA_ANT_JAVADOC_OUTPUT_DIR}" || die
274 274
275 if hasq doc ${IUSE}; then 275 if hasq doc ${IUSE}; then
276 if use doc; then 276 if use doc; then
277 if [[ -z ${EANT_DOC_TARGET} ]]; then 277 if [[ -z ${EANT_DOC_TARGET} ]]; then
385# ------------------------------------------------------------------------------ 385# ------------------------------------------------------------------------------
386# @public java-ant_xml-rewrite 386# @public java-ant_xml-rewrite
387# Run the right xml-rewrite binary with the given arguments 387# Run the right xml-rewrite binary with the given arguments
388# ------------------------------------------------------------------------------ 388# ------------------------------------------------------------------------------
389java-ant_xml-rewrite() { 389java-ant_xml-rewrite() {
390 local bindir="${ROOT}/usr/bin/"
391 local gen2="${bindir}/xml-rewrite-2.py" 390 local gen2="/usr/bin/xml-rewrite-2.py"
392 # gen1 is deprecated 391 # gen1 is deprecated
393 if [[ -x "${gen2}" ]]; then 392 if [[ -x "${gen2}" ]]; then
394 ${gen2} "${@}" || die "${gen2} failed" 393 ${gen2} "${@}" || die "${gen2} failed"
395 else 394 else
396 eerror "No binary for rewriting found." 395 eerror "No binary for rewriting found."

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20