commit:     afc9b285e52cc818123056bf6f1fee51a56c4a6c
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  4 21:07:24 2015 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Dec  4 21:07:24 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc9b285

java-utils-2.eclass: Don't leave junk in /tmp after ejunit calls

Put the junk in ${T} instead.

 eclass/java-utils-2.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index f7a6a86..1a7dd7d 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

Reply via email to