You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2017/07/28 18:08:26 UTC

[2/2] incubator-predictionio git commit: [PIO-72] Add JDBC JARs when they are present

[PIO-72] Add JDBC JARs when they are present


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/a8130217
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/a8130217
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/a8130217

Branch: refs/heads/develop
Commit: a813021714ae8930c0d7e2061a15ab897005d188
Parents: d894b72
Author: Donald Szeto <do...@apache.org>
Authored: Fri Jul 28 11:08:00 2017 -0700
Committer: Donald Szeto <do...@apache.org>
Committed: Fri Jul 28 11:08:00 2017 -0700

----------------------------------------------------------------------
 bin/compute-classpath.sh | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/a8130217/bin/compute-classpath.sh
----------------------------------------------------------------------
diff --git a/bin/compute-classpath.sh b/bin/compute-classpath.sh
index cd0527f..3e59ca7 100755
--- a/bin/compute-classpath.sh
+++ b/bin/compute-classpath.sh
@@ -63,9 +63,11 @@ if [ -n "$ES_CONF_DIR" ]; then
 fi
 if [ -n "$POSTGRES_JDBC_DRIVER" ]; then
   CLASSPATH="$CLASSPATH:$POSTGRES_JDBC_DRIVER"
+  ASSEMBLY_JARS="$ASSEMBLY_JARS,$POSTGRES_JDBC_DRIVER"
 fi
 if [ -n "$MYSQL_JDBC_DRIVER" ]; then
   CLASSPATH="$CLASSPATH:$MYSQL_JDBC_DRIVER"
+  ASSEMBLY_JARS="$ASSEMBLY_JARS,$MYSQL_JDBC_DRIVER"
 fi
 
 echo "$CLASSPATH"