/[gentoo-x86]/eclass/java-utils-2.eclass
Gentoo

Diff of /eclass/java-utils-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.137 Revision 1.138
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2005, Gentoo Foundation 5# Copyright (c) 2004-2005, Gentoo Foundation
6# 6#
7# Licensed under the GNU General Public License, v2 7# Licensed under the GNU General Public License, v2
8# 8#
9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.137 2011/03/15 19:54:12 serkan Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.138 2011/03/23 19:32:57 serkan Exp $
10 10
11# ----------------------------------------------------------------------------- 11# -----------------------------------------------------------------------------
12# @eclass-begin 12# @eclass-begin
13# @eclass-shortdesc Java Utility eclass 13# @eclass-shortdesc Java Utility eclass
14# @eclass-maintainer java@gentoo.org 14# @eclass-maintainer java@gentoo.org
241 ( # dont want to pollute calling env 241 ( # dont want to pollute calling env
242 insinto "${dest}" 242 insinto "${dest}"
243 doins -r "$@" 243 doins -r "$@"
244 ) || die "Installing examples failed" 244 ) || die "Installing examples failed"
245 fi 245 fi
246
247 # Let's make a symlink to the directory we have everything else under
248 dosym "${dest}" "${JAVA_PKG_SHAREPATH}/examples" || die
246} 249}
247 250
248# ----------------------------------------------------------------------------- 251# -----------------------------------------------------------------------------
249# @ebuild-function java-pkg_dojar 252# @ebuild-function java-pkg_dojar
250# 253#
1785 else 1788 else
1786 cp=".:${cp}" 1789 cp=".:${cp}"
1787 fi 1790 fi
1788 1791
1789 local runner=junit.textui.TestRunner 1792 local runner=junit.textui.TestRunner
1793 if [[ "${junit}" == "junit-4" ]] ; then
1794 runner=org.junit.runner.JUnitCore
1795 fi
1790 debug-print "Calling: java -cp \"${cp}\" -Djava.awt.headless=true ${runner} ${@}" 1796 debug-print "Calling: java -cp \"${cp}\" -Djava.awt.headless=true ${runner} ${@}"
1791 java -cp "${cp}" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed" 1797 java -cp "${cp}" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
1792} 1798}
1793 1799
1794# ------------------------------------------------------------------------------ 1800# ------------------------------------------------------------------------------
1798# dev-java/junit in DEPEND. Launches the tests using junit.textui.TestRunner. 1804# dev-java/junit in DEPEND. Launches the tests using junit.textui.TestRunner.
1799# 1805#
1800# Examples: 1806# Examples:
1801# ejunit -cp build/classes org.blinkenlights.jid3.test.AllTests 1807# ejunit -cp build/classes org.blinkenlights.jid3.test.AllTests
1802# ejunit org.blinkenlights.jid3.test.AllTests 1808# ejunit org.blinkenlights.jid3.test.AllTests
1809# ejunit org.blinkenlights.jid3.test.FirstTest \
1810# org.blinkenlights.jid3.test.SecondTest
1803# 1811#
1804# @param $1 - -cp or -classpath 1812# @param $1 - -cp or -classpath
1805# @param $2 - classpath; junit and recorded dependencies get appended 1813# @param $2 - classpath; junit and recorded dependencies get appended
1806# @param $@ - the rest of the parameters are passed to java 1814# @param $@ - the rest of the parameters are passed to java
1807# ------------------------------------------------------------------------------ 1815# ------------------------------------------------------------------------------
1818# dev-java/junit:4 in DEPEND. Launches the tests using junit.textui.TestRunner. 1826# dev-java/junit:4 in DEPEND. Launches the tests using junit.textui.TestRunner.
1819# 1827#
1820# Examples: 1828# Examples:
1821# ejunit4 -cp build/classes org.blinkenlights.jid3.test.AllTests 1829# ejunit4 -cp build/classes org.blinkenlights.jid3.test.AllTests
1822# ejunit4 org.blinkenlights.jid3.test.AllTests 1830# ejunit4 org.blinkenlights.jid3.test.AllTests
1831# ejunit4 org.blinkenlights.jid3.test.FirstTest \
1832# org.blinkenlights.jid3.test.SecondTest
1823# 1833#
1824# @param $1 - -cp or -classpath 1834# @param $1 - -cp or -classpath
1825# @param $2 - classpath; junit and recorded dependencies get appended 1835# @param $2 - classpath; junit and recorded dependencies get appended
1826# @param $@ - the rest of the parameters are passed to java 1836# @param $@ - the rest of the parameters are passed to java
1827# ------------------------------------------------------------------------------ 1837# ------------------------------------------------------------------------------

Legend:
Removed from v.1.137  
changed lines
  Added in v.1.138

  ViewVC Help
Powered by ViewVC 1.1.20