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:07 UTC

svn commit: r1367015 - /jena/trunk/jena-tdb/bin/tdbloader3

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

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

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

Modified: jena/trunk/jena-tdb/bin/tdbloader3
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/bin/tdbloader3?rev=1367015&r1=1367014&r2=1367015&view=diff
==============================================================================
--- jena/trunk/jena-tdb/bin/tdbloader3 (original)
+++ jena/trunk/jena-tdb/bin/tdbloader3 Mon Jul 30 07:55:07 2012
@@ -31,5 +31,22 @@ then 
 fi
 
 . "$INIT"
+
+# TMP on Windows, and TMPDIR on linux.
+
+if [ "$TMP" != "" ]
+then
+    T="$TMP"
+    fi
+if [ "$TMPDIR" != "" ]
+then
+    T="$TMPDIR"
+    fi
+
+if [ "$T" != "" ]
+then
+    JVM_ARGS="$JVM_ARGS -Djava.io.tmpdir=$T"
+    fi
+
 #echo "$TDB_CP"
 exec java $JVM_ARGS $SOCKS -cp "$TDB_CP" "tdb.$TDB_CMD" $TDB_SPEC "$@"