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

dist.liquibase.bat Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
@echo off
if "%OS%" == "Windows_NT" setlocal

setlocal enabledelayedexpansion

rem %~dp0 is expanded pathname of the current script under NT
set LIQUIBASE_HOME="%~dp0"

set CP=.
for /R %LIQUIBASE_HOME% %%f in (liquibase*.jar) do set CP=!CP!;%%f
for /R %LIQUIBASE_HOME%\lib %%f in (*.jar) do set CP=!CP!;%%f
rem remove quotes around LIQUIBASE_HOME
set LIQUIBASE_HOME=%LIQUIBASE_HOME:"=%
rem add the lib directory itself to the classpath
set CP=!CP!;!LIQUIBASE_HOME!lib

rem special characters may be lost
setlocal DISABLEDELAYEDEXPANSION

rem get command line args into a variable
set CMD_LINE_ARGS=%1
if ""%1""=="""" goto done
shift
:setup
if ""%1""=="""" goto done
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setup
:done

IF NOT DEFINED JAVA_OPTS set JAVA_OPTS=

java -cp "%CP%" %JAVA_OPTS% liquibase.integration.commandline.Main %CMD_LINE_ARGS%




© 2015 - 2024 Weber Informatics LLC | Privacy Policy