You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/07/28 21:49:07 UTC
[3/5] incubator-joshua git commit: fix for when multiple jar files
are in $JOSHUA/target
fix for when multiple jar files are in $JOSHUA/target
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/af2956ed
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/af2956ed
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/af2956ed
Branch: refs/heads/master
Commit: af2956edcedd629a28af9fd0d7b0d0e5783c5292
Parents: 9d65bcb
Author: Matt Post <po...@cs.jhu.edu>
Authored: Thu Jul 28 17:47:44 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Thu Jul 28 17:47:44 2016 -0400
----------------------------------------------------------------------
bin/joshua-decoder | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/af2956ed/bin/joshua-decoder
----------------------------------------------------------------------
diff --git a/bin/joshua-decoder b/bin/joshua-decoder
index 9bcfc74..429188e 100755
--- a/bin/joshua-decoder
+++ b/bin/joshua-decoder
@@ -40,8 +40,9 @@ fi
set -u
JOSHUA=$(dirname $0)/..
-JAR_PATH=$JOSHUA/target/joshua-*-jar-with-dependencies.jar
RES_OVERRIDE_PATH=$JOSHUA/src/main/resources
+# Get the jar file (only the most recent, if there are many)
+JAR_PATH=$(ls -t $JOSHUA/target/joshua-*-jar-with-dependencies.jar | head -n1)
exec java -Xmx${mem} \
-Dfile.encoding=utf8 \
-Djava.library.path=$JOSHUA/lib \