* [gentoo-java] Added support to control rewritten tags to java-ant_rewrite-classpath
@ 2008-03-05 19:29 Petteri Räty
0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2008-03-05 19:29 UTC (permalink / raw
To: Gentoo Java
[-- Attachment #1.1: Type: text/plain, Size: 42 bytes --]
See attached patch.
Regards,
Petteri
[-- Attachment #1.2: classpath-tags.patch --]
[-- Type: text/plain, Size: 1629 bytes --]
Index: java-ant-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v
retrieving revision 1.29
diff -u -r1.29 java-ant-2.eclass
--- java-ant-2.eclass 13 Feb 2008 19:44:15 -0000 1.29
+++ java-ant-2.eclass 5 Mar 2008 19:29:17 -0000
@@ -112,6 +112,15 @@
JAVA_PKG_BSFIX_SOURCE_TAGS=${JAVA_PKG_BSFIX_SOURCE_TAGS:-"javadoc javac xjavac javac.preset"}
# ------------------------------------------------------------------------------
+# @global JAVA_ANT_CLASSPATH_TAGS
+#
+# Targets to add the classpath attribute to
+#
+# default: javac xjavac
+# ------------------------------------------------------------------------------
+JAVA_ANT_CLASSPATH_TAGS="javac xjavac"
+
+# ------------------------------------------------------------------------------
# @global JAVA_ANT_IGNORE_SYSTEM_CLASSES
#
# Rewrites available tasks to ignore ant classpath.
@@ -344,6 +353,8 @@
# @public java-ant_rewrite-classpath
#
# Adds 'classpath="${gentoo.classpath}"' to specified build file.
+# Affected by:
+# JAVA_ANT_CLASSPATH_TAGS
# @param $1 - the file to rewrite (defaults to build.xml)
# ------------------------------------------------------------------------------
java-ant_rewrite-classpath() {
@@ -360,7 +371,8 @@
chmod u+w "${file}"
- java-ant_xml-rewrite -f "${file}" --change -e javac -e xjavac -a classpath -v '${gentoo.classpath}'
+ java-ant_xml-rewrite -f "${file}" --change \
+ -e ${JAVA_ANT_CLASSPATH_TAGS// / -e } -a classpath -v '${gentoo.classpath}'
if [[ -n "${JAVA_PKG_DEBUG}" ]]; then
diff -NurbB "${file}.orig" "${file}"
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-05 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05 19:29 [gentoo-java] Added support to control rewritten tags to java-ant_rewrite-classpath Petteri Räty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox