summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2015-12-04 21:07:24 +0000
committerJames Le Cuirot <chewi@gentoo.org>2015-12-04 21:07:24 +0000
commitafc9b285e52cc818123056bf6f1fee51a56c4a6c (patch)
tree8ff18c0bfafc06b3c5fe96c856fae9212503fdbb /eclass/java-utils-2.eclass
parentdev-php/pecl-timezonedb: Version bump to 2015.7 (diff)
downloadgentoo-afc9b285e52cc818123056bf6f1fee51a56c4a6c.tar.gz
gentoo-afc9b285e52cc818123056bf6f1fee51a56c4a6c.tar.bz2
gentoo-afc9b285e52cc818123056bf6f1fee51a56c4a6c.zip
java-utils-2.eclass: Don't leave junk in /tmp after ejunit calls
Put the junk in ${T} instead.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index f7a6a86a7529..1a7dd7dc0171 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -1802,8 +1802,8 @@ ejunit_() {
if [[ "${junit}" == "junit-4" ]] ; then
runner=org.junit.runner.JUnitCore
fi
- debug-print "Calling: java -cp \"${cp}\" -Djava.awt.headless=true ${runner} ${@}"
- java -cp "${cp}" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
+ debug-print "Calling: java -cp \"${cp}\" -Djava.io.tmpdir=\"${T}\" -Djava.awt.headless=true ${runner} ${@}"
+ java -cp "${cp}" -Djava.io.tmpdir="${T}/" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
}
# @FUNCTION: ejunit