summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-03-25 10:02:09 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-03-25 10:02:09 +0000
commit3575e7b7c36184740a2902415550523b2be3e704 (patch)
tree25fd8ccbdc9049dae73b593464b646a40ab20b61 /eclass
parentStable on ppc wrt bug #169675. (diff)
downloadgentoo-2-3575e7b7c36184740a2902415550523b2be3e704.tar.gz
gentoo-2-3575e7b7c36184740a2902415550523b2be3e704.tar.bz2
gentoo-2-3575e7b7c36184740a2902415550523b2be3e704.zip
Added instructions on how to fix an error when calling regjar with *.jar but not using ${D}.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 8b8e114e51fb..635236ab34f1 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -6,7 +6,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.67 2007/03/22 03:11:19 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.68 2007/03/25 10:02:09 betelgeuse Exp $
# -----------------------------------------------------------------------------
@@ -349,6 +349,11 @@ java-pkg_regjar() {
# record paths with ${D} in package.env
java-pkg_append_ JAVA_PKG_CLASSPATH "${jar#${D}}"
else
+ if [[ ${jar} = *\** ]]; then
+ eerror "The argument ${jar} to ${FUNCNAME}"
+ eerror "has * in it. If you want it to glob in"
+ eerror '${D} add ${D} to the argument.'
+ fi
die "${jar} does not exist"
fi
done