summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorist <ist@istnightly.(none)>2013-04-16 10:49:43 +0200
committerist <ist@istnightly.(none)>2013-04-16 10:49:43 +0200
commit268034eb3bda95ec0292076acda5466e803f96dc (patch)
tree98092e9a0147a6650dce7a6aaed4e48f8380837e
parent35b9f1c814c8e38ca3e418e92b294078996c7193 (diff)
Compile java with running version during installation.
-rwxr-xr-xbin/algorithm-install8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/algorithm-install b/bin/algorithm-install
index cc35691..b009740 100755
--- a/bin/algorithm-install
+++ b/bin/algorithm-install
@@ -37,7 +37,7 @@ RUBY_DIR="$HOME/.rbenv/versions/$RUBY_NUM_VER"
# # # Install
-check_utils "rbenv find R"
+check_utils "rbenv find R javac"
check_log $SELF
if [ "$OT_BRANCH" = "development" ]; then
@@ -49,6 +49,12 @@ fi
# log directory for this service
[ -d $OT_CONFIG_DIR/config/$SELF ] || cmd="mkdir -p $OT_CONFIG_DIR/config/$SELF" && run_cmd "$cmd" "Config directory"
+echo
+echo "Compile Algorithm java classes"
+cd $DIR/../java
+$JAVAC -classpath classes:* *.java 2>&1
+cd $DIR/..
+
# Adjust ruby version here!
RUBY_NUM_VER="1.9.3-p194"