/[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.23 Revision 1.24
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.23 2007/08/05 08:17:05 betelgeuse Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.24 2007/12/18 00:23:06 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
337 for file in "${@}"; do 337 for file in "${@}"; do
338 diff -NurbB "${file}.orig" "${file}" 338 diff -NurbB "${file}.orig" "${file}"
339 done 339 done
340 fi 340 fi
341 fi 341 fi
342 return 0 # so that the 1 for diff doesn't get reported
342} 343}
343 344
344 345
345# ------------------------------------------------------------------------------ 346# ------------------------------------------------------------------------------
346# @public java-ant_bsfix_one 347# @public java-ant_bsfix_one
370java-ant_rewrite-classpath() { 371java-ant_rewrite-classpath() {
371 debug-print-function ${FUNCNAME} $* 372 debug-print-function ${FUNCNAME} $*
372 373
373 local file="${1}" 374 local file="${1}"
374 [[ -z "${1}" ]] && file=build.xml 375 [[ -z "${1}" ]] && file=build.xml
376 [[ ${#} -gt 1 ]] && die "${FUNCNAME} currently can only rewrite one file."
375 377
376 echo "Adding gentoo.classpath to ${file}" 378 echo "Adding gentoo.classpath to ${file}"
377 debug-print "java-ant_rewrite-classpath: ${file}" 379 debug-print "java-ant_rewrite-classpath: ${file}"
378 380
379 cp "${file}" "${file}.orig" || die "failed to copy ${file}" 381 cp "${file}" "${file}.orig" || die "failed to copy ${file}"

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

  ViewVC Help
Powered by ViewVC 1.1.20