From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q2Tnn-00028G-Fq for garchives@archives.gentoo.org; Wed, 23 Mar 2011 19:33:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E22A1C0A1; Wed, 23 Mar 2011 19:33:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EBD591C0A1 for ; Wed, 23 Mar 2011 19:32:59 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1EA6E1B4075 for ; Wed, 23 Mar 2011 19:32:59 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2215) id AF8D220054; Wed, 23 Mar 2011 19:32:57 +0000 (UTC) From: "Serkan Kaba (serkan)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, serkan@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: java-utils-2.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: java-utils-2.eclass X-VCS-Directories: eclass X-VCS-Committer: serkan X-VCS-Committer-Name: Serkan Kaba Content-Type: text/plain; charset=utf8 Message-Id: <20110323193257.AF8D220054@flycatcher.gentoo.org> Date: Wed, 23 Mar 2011 19:32:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8891fdd3b7dd22c801bf73e9c08a363d serkan 11/03/23 19:32:57 Modified: java-utils-2.eclass Log: Use JUnitCore as a runner for junit4 and create symlinks for examples. = Improve ejunit docs. Thanks to Ralph Sennhauser = for both patches. Revision Changes Path 1.138 eclass/java-utils-2.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-utils-= 2.eclass?rev=3D1.138&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-utils-= 2.eclass?rev=3D1.138&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/java-utils-= 2.eclass?r1=3D1.137&r2=3D1.138 Index: java-utils-2.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v retrieving revision 1.137 retrieving revision 1.138 diff -u -r1.137 -r1.138 --- java-utils-2.eclass 15 Mar 2011 19:54:12 -0000 1.137 +++ java-utils-2.eclass 23 Mar 2011 19:32:57 -0000 1.138 @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.137 20= 11/03/15 19:54:12 serkan Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.138 20= 11/03/23 19:32:57 serkan Exp $ =20 # ----------------------------------------------------------------------= ------- # @eclass-begin @@ -243,6 +243,9 @@ doins -r "$@" ) || die "Installing examples failed" fi + + # Let's make a symlink to the directory we have everything else under + dosym "${dest}" "${JAVA_PKG_SHAREPATH}/examples" || die } =20 # ----------------------------------------------------------------------= ------- @@ -1787,6 +1790,9 @@ fi =20 local runner=3Djunit.textui.TestRunner + if [[ "${junit}" =3D=3D "junit-4" ]] ; then + runner=3Dorg.junit.runner.JUnitCore + fi debug-print "Calling: java -cp \"${cp}\" -Djava.awt.headless=3Dtrue ${r= unner} ${@}" java -cp "${cp}" -Djava.awt.headless=3Dtrue ${runner} "${@}" || die "Ru= nning junit failed" } @@ -1800,6 +1806,8 @@ # Examples: # ejunit -cp build/classes org.blinkenlights.jid3.test.AllTests # ejunit org.blinkenlights.jid3.test.AllTests +# ejunit org.blinkenlights.jid3.test.FirstTest \ +# org.blinkenlights.jid3.test.SecondTest # # @param $1 - -cp or -classpath # @param $2 - classpath; junit and recorded dependencies get appended @@ -1820,6 +1828,8 @@ # Examples: # ejunit4 -cp build/classes org.blinkenlights.jid3.test.AllTests # ejunit4 org.blinkenlights.jid3.test.AllTests +# ejunit4 org.blinkenlights.jid3.test.FirstTest \ +# org.blinkenlights.jid3.test.SecondTest # # @param $1 - -cp or -classpath # @param $2 - classpath; junit and recorded dependencies get appended