Strabon
changeset 420:dd0dce56577b
now one can store a file given a relative filename. This breaks storing of a triple given as an argument, but it was absurd anyway.
author | Babis Nikolaou <charnik@di.uoa.gr> |
---|---|
date | Wed Jul 11 00:34:05 2012 +0300 (2012-07-11) |
parents | 28ce0ecfb65b |
children | 9994abeee688 |
files | scripts/strabon |
line diff
1.1 --- a/scripts/strabon Tue Jul 10 20:47:40 2012 +0300 1.2 +++ b/scripts/strabon Wed Jul 11 00:34:05 2012 +0300 1.3 @@ -432,6 +432,11 @@ 1.4 if test "${CLASS}" = "StoreOp"; then 1.5 STRABON_EXEC= 1.6 for file in "${@}"; do 1.7 + # check whether a relative path was given 1.8 + if ! test "${file:0:7}" == "file://" -o "${file:0:7}" == "http://" -o "${file:0:1}" == "/"; then 1.9 + file="$(pwd)/${file}" 1.10 + fi 1.11 + 1.12 STRABON_EXEC="${STRABON_EXEC}(cd ${RUNTIME} && java -cp ./target/\*:. ${PKG}.${DATABASE}.${CLASS} ${HOST} ${PORT} ${DB} ${DBUSER} ${DBPASS} \"${file}\" ${FORMAT}); 1.13 " 1.14 done