All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dist.sdk.liquibase-sdk.sh Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
#! /bin/sh

if [ ! -n "${LIQUIBASE_HOME+x}" ]; then
  # echo "Liquibase Home is not set."

  ## resolve links - $0 may be a symlink
  PRG="$0"
  while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '/.*' > /dev/null; then
    PRG="$link"
    else
    PRG=`dirname "$PRG"`"/$link"
    fi
  done


  LIQUIBASE_SDK_HOME=`dirname "$PRG"`
  # make it fully qualified
  LIQUIBASE_SDK_HOME=`cd "$LIQUIBASE_SDK_HOME" && pwd`

  LIQUIBASE_HOME=`dirname "$LIQUIBASE_SDK_HOME"`

  # echo "Liquibase Home: $LIQUIBASE_HOME"
fi

 
# build classpath from all jars in lib
if [ -f /usr/bin/cygpath ]; then
  CP=.
  for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
    i=`cygpath --windows "$i"`
    CP="$CP;$i"
  done
  for i in "$LIQUIBASE_HOME"/lib/*.jar; do
    i=`cygpath --windows "$i"`
    CP="$CP;$i"
  done
  for i in "$LIQUIBASE_HOME"/sdk/lib-sdk/*.jar; do
    i=`cygpath --windows "$i"`
    CP="$CP;$i"
  done
else
  CP=.
  for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
    CP="$CP":"$i"
  done
  for i in "$LIQUIBASE_HOME"/lib/*.jar; do
    CP="$CP":"$i"
  done
  for i in "$LIQUIBASE_HOME"/sdk/lib-sdk/*.jar; do
    CP="$CP":"$i"
  done
fi

# add any JVM options here
JAVA_OPTS=

java -cp "$CP" $JAVA_OPTS liquibase.sdk.Main ${1+"$@"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy