Liquibase.bat : Incorrect classpath logic

Description

Liquibase.bat does not recognize multiple jars when placed in LIQUIBASE_HOME\lib. It only takes the one jar file.

Reason :
The below 2 lines in liquibase.bat does not set the classpath correctly.

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

The correct way of defining these 2 lines should be :
setlocal ENABLEDELAYEDEXPANSION
for /R %LIQUIBASE_HOME% %%f in (liquibase*.jar) do set CP=

;%%f
for /R %LIQUIBASE_HOME%\lib %%f in (*.jar) do set CP=

;%%f

Environment

Windows 2003 R2

Activity

Show:

Nathan Voxland April 21, 2010 at 2:57 PM

duplicate of a recently closed bug

Duplicate

Details

Reporter

Fix versions

Affects versions

Priority

Created February 9, 2010 at 8:25 PM
Updated April 21, 2010 at 2:57 PM
Resolved April 21, 2010 at 2:57 PM