liquibase.bat cannot be called from a path containing spaces

Description

Updating to liquibase 3.8.7 we experienced a problem because our liquibase was placed in c:/program files (x86)/liquibase.

When executing the liquibase.bat it gives the following error:

 

The error happens because the quotes in the path are being removed:

rem remove quotes around LIQUIBASE_HOME set LIQUIBASE_HOME=%LIQUIBASE_HOME:"=%

For us I worked around this problem by rem-ing out this JRE logic:

rem set JAVA_HOME to local jre dir if not set if exist "%LIQUIBASE_HOME%\jre" if "%JAVA_HOME%"=="" ( set JAVA_HOME=%LIQUIBASE_HOME%\jre )

This code was introduced in version 3.8.5 (which I couldn't select in the affected version dropdown?).

Environment

Windows

Attachments

2
  • 20 Jul 2020, 04:34 AM
  • 10 Mar 2020, 08:02 AM

Activity

Show:

Jesse Ostlund July 20, 2020 at 4:33 AM

Ok

Details

Reporter

Components

Affects versions

Priority

Created March 10, 2020 at 7:59 AM
Updated July 20, 2020 at 4:34 AM

Flag notifications