From: "Petteri Räty" <betelgeuse@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] JAVA_ANT_IGNORE_SYSTEM_CLASSES
Date: Sun, 21 Jan 2007 00:27:12 +0200 [thread overview]
Message-ID: <45B29740.1080803@gentoo.org> (raw)
[-- 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"
}
# ------------------------------------------------------------------------------
reply other threads:[~2007-01-20 22:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45B29740.1080803@gentoo.org \
--to=betelgeuse@gentoo.org \
--cc=gentoo-java@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox