Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flyway gradle task cannot open file within custom location (windows) #2504

Closed
gintsgints opened this issue Sep 14, 2019 · 1 comment

Comments

@gintsgints
Copy link

@gintsgints gintsgints commented Sep 14, 2019

Which version and edition of Flyway are you using?

6.0.2

If this is not the latest version, can you reproduce the issue with the latest one as well?

(Many bugs are fixed in newer releases and upgrading will often resolve the issue)

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Gradle plugin

Which database are you using (type & version)?

Oracle 11.g.

Which operating system are you using?

Windows

What did you do?

(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)

Start gradle build with custom location:

gradle flywayMigrate -i -Pflyway.locations=filesystem:"./src/main/resources/db/seed"

What did you expect to see?

Executed scripts in seed directory.

What did you see instead?
  • What went wrong:
    Execution failed for task ':flywayMigrate'.

Error occurred while executing flywayMigrate
Unable to load filesystem resource: .\src\main\resources\db\seed\V10__AGC_CUSTOM_TABLE_TYPE.sql (encoding: UTF-8)
.\src\main\resources\db\seed\V10__AGC_CUSTOM_TABLE_TYPE.sql

@MikielAgutu

This comment has been minimized.

Copy link
Member

@MikielAgutu MikielAgutu commented Sep 20, 2019

Thanks for the report. I've been able to reproduce and develop a fix for this. It should be available in the next release.

@MikielAgutu MikielAgutu added this to the Flyway 6.0.4 milestone Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.