* [gentoo-java] JAVA_ANT_IGNORE_SYSTEM_CLASSES
@ 2007-01-20 22:27 Petteri Räty
0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2007-01-20 22:27 UTC (permalink / raw
To: gentoo-java
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
You can now set JAVA_ANT_IGNORE_SYSTEM_CLASSES in ebuilds to
automatically make available tasks ignore classes in ant classpath. This
is usually useful to fix code that builds tests based on junti being
available. The variable should only be used if there is no src_unpack as
you can just call java-ant_ignore-system-classes in src_unpack if it
exists. The ant-core automatic dep is also here but it is disable
because ant-core is not modified yet to disable the dep.
Regards,
Petteri
[-- Attachment #2: ant-ignore-system-classes.patch --]
[-- Type: text/x-patch, Size: 1267 bytes --]
Index: java-ant-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-ant-2.eclass,v
retrieving revision 1.12
diff -u -r1.12 java-ant-2.eclass
--- java-ant-2.eclass 12 Jan 2007 14:03:16 -0000 1.12
+++ java-ant-2.eclass 20 Jan 2007 22:24:42 -0000
@@ -20,6 +20,7 @@
# We need some tools from javatoolkit. We also need portage 2.1 for phase hooks
DEPEND=">=dev-java/javatoolkit-0.1.5 ${JAVA_PKG_PORTAGE_DEP}"
+[[ "${JAVA_ANT_DISABLE_ANT_CORE_DEP:-true}" ]] || DEPEND="${DEPEND} dev-java/ant-core"
# ------------------------------------------------------------------------------
# @global JAVA_PKG_BSFIX
@@ -71,6 +72,8 @@
# @public java-ant_src_unpack
#
# Unpacks the source, and attempts to fix build files.
+# variable JAVA_ANT_IGNORE_SYSTEM_CLASSES:
+# ignore ant classpath in available tasks
# ------------------------------------------------------------------------------
post_src_unpack() {
if java-pkg_func-exists ant_src_unpack; then
@@ -78,6 +81,8 @@
ant_src_unpack
fi
java-ant_bsfix
+ [[ "${JAVA_ANT_IGNORE_SYSTEM_CLASSES}" ]] \
+ && java-ant_ignore-system-classes "${S}/build.xml"
}
# ------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-20 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-20 22:27 [gentoo-java] JAVA_ANT_IGNORE_SYSTEM_CLASSES 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