play-liquibase icon indicating copy to clipboard operation
play-liquibase copied to clipboard

liquibase resolve wrong file lication for releative rescource

Open theSemenov opened this issue 5 years ago • 2 comments

conf
    liquibase
        changelog.xml
        dicts
            dict.xml
            dict.csv

changelog.xml is:

<includeAll path="./dicts" relativeToChangelogFile="true" />

When I trying to run applcation I have an exception:

liquibase.exception.ChangeLogParseException: file:/conf/liquibase/dicts/dict.xml does not exist

In FileSystemResourceAccessor chengelog.xml opened from path:

/home/myuser/git/myapp/conf/liquibase/changelog.xml

but relative resource path resolve as

/home/myuser/git/myapp/file:/conf/liquibase/dicts/dict.xml

file: in the middle of the path broke the correct path

theSemenov avatar Sep 26 '19 07:09 theSemenov