/[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.25 Revision 1.26
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.25 2008/01/12 15:08:47 caster Exp $ 17# $Header: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v 1.26 2008/01/22 21:57:03 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
260 260
261 eval echo "Rewriting nowarn attributes" ${output} 261 eval echo "Rewriting nowarn attributes" ${output}
262 eval xml-rewrite-2.py ${files} \ 262 eval xml-rewrite-2.py ${files} \
263 -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \ 263 -c -e ${JAVA_PKG_BSFIX_TARGET_TAGS// / -e } \
264 -a nowarn -v yes ${output} || _bsfix_die "xml-rewrite2 failed: ${file}" 264 -a nowarn -v yes ${output} || _bsfix_die "xml-rewrite2 failed: ${file}"
265
266 if [[ ${JAVA_ANT_REWRITE_CLASSPATH} ]]; then
267 eval echo "Adding gentoo.classpath to javac tasks"
268 eval xml-rewrite-2.py ${files} \
269 -c -e javac -e xjavac -a classpath -v \
270 '\${gentoo.classpath}' \
271 || _bsfix_die "xml-rewrite2 failed"
272 fi
265 else 273 else
266 debug-print "Using third generation rewriter" 274 debug-print "Using third generation rewriter"
267 eval echo "Rewriting attributes" ${output} 275 eval echo "Rewriting attributes" ${output}
268 local bsfix_extra_args="" 276 local bsfix_extra_args=""
269 # WARNING KEEP THE ORDER, ESPECIALLY FOR CHANGED ATTRIBUTES! 277 # WARNING KEEP THE ORDER, ESPECIALLY FOR CHANGED ATTRIBUTES!

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20