How to get absolute path of resources dir in GrallVM native-image, e.g. src/main/resources/db/migrations
ctoabidmaqbool opened this issue · 0 comments
I am instrusted to use FlywayDb works anyway with Gluon Gradle Plugins
/ Gluon Maven Plugin
e.g. GrallVM native-image feature.
As the trick provided by @Khithar workd like a charm e.g. Flyway.configure().locations("filesystem:" TEMPDIR)
but TEMPDIR in this case must be absolute and relatevie system path e.g. C:\db\migrations' or
/db/migrations`.
How can I get absoute path from my code that must works correctly in grallvm-native image too e.g. src/main/resources/db/migrations
.
In short how can i get absolute path of migrations
dir automatically?
For testing project, let see the comment message: flyway/flyway#2927 (comment)
Its works with .SQL migrations files, Flyway.configure().locations("filesystem:", "C:\db\migration");