2
3

liquibase.bat 851 B

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. if "%OS%" == "Windows_NT" setlocal
  3. setlocal enabledelayedexpansion
  4. rem %~dp0 is expanded pathname of the current script under NT
  5. set LIQUIBASE_HOME="%~dp0"
  6. set CP=.
  7. for /R %LIQUIBASE_HOME% %%f in (liquibase*.jar) do set CP=!CP!;%%f
  8. for /R %LIQUIBASE_HOME%\lib %%f in (*.jar) do set CP=!CP!;%%f
  9. rem remove quotes around LIQUIBASE_HOME
  10. set LIQUIBASE_HOME=%LIQUIBASE_HOME:"=%
  11. rem add the lib directory itself to the classpath
  12. set CP=!CP!;!LIQUIBASE_HOME!lib
  13. rem special characters may be lost
  14. setlocal DISABLEDELAYEDEXPANSION
  15. rem get command line args into a variable
  16. set CMD_LINE_ARGS=%1
  17. if ""%1""=="""" goto done
  18. shift
  19. :setup
  20. if ""%1""=="""" goto done
  21. set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
  22. shift
  23. goto setup
  24. :done
  25. IF NOT DEFINED JAVA_OPTS set JAVA_OPTS=
  26. java -cp "%CP%" %JAVA_OPTS% liquibase.integration.commandline.Main %CMD_LINE_ARGS%