You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/07/30 09:55:25 UTC

svn commit: r1367016 - /jena/trunk/apache-jena/bin/tdbloader3

Author: andy
Date: Mon Jul 30 07:55:25 2012
New Revision: 1367016

URL: http://svn.apache.org/viewvc?rev=1367016&view=rev
Log:
Respect environment variables for the temporary files directory.

Modified:
    jena/trunk/apache-jena/bin/tdbloader3

Modified: jena/trunk/apache-jena/bin/tdbloader3
URL: http://svn.apache.org/viewvc/jena/trunk/apache-jena/bin/tdbloader3?rev=1367016&r1=1367015&r2=1367016&view=diff
==============================================================================
--- jena/trunk/apache-jena/bin/tdbloader3 (original)
+++ jena/trunk/apache-jena/bin/tdbloader3 Mon Jul 30 07:55:25 2012
@@ -12,9 +12,24 @@ then
     exit 1
     fi
 
+# TMP on Windows, and TMPDIR on linux.
+T=
+if [ "$TMP" != "" ]
+then
+    T="$TMP"
+    fi
+if [ "$TMPDIR" != "" ]
+then
+    T="$TMPDIR"
+    fi
 
 # ---- Setup
 JVM_ARGS=${JVM_ARGS:--Xmx1024M}
+if [ "$T" != "" ]
+then
+    JVM_ARGS="$JVM_ARGS -Djava.io.tmpdir=$T"
+    fi
+
 # Expand JENAROOT but literal *
 JENA_CP="$JENAROOT"'/lib/*'
 SOCKS=