0

refered to this question I discover flyway remove the slashes of the end of location path with the method normalizeLocation. (On Flyway 1.7) In debug mode when flyway call findResourceNames if I evaluate

getClassLoader().getResources("com/me/app/sql/migration").hasMoreElements();

it's always return false. But if I evaluate

getClassLoader().getResources("com/me/app/sql/migration/").hasMoreElements();

it's return true.

So why flyway doing this ? cause it's probably the source of my problem, and cause of that my migration are never find.

Community
  • 1
  • 1
agonist_
  • 4,890
  • 6
  • 32
  • 55
  • What `normalizeLocation` method are you talking about? There is no such method in flyway 2.2 javadoc index. – Stephen C Jul 19 '13 at 10:01
  • sorry i'm back to the 1.7 version of flyway – agonist_ Jul 19 '13 at 10:09
  • 1
    Please upgrade to 2.2 and try again. It fixes many issues. – Axel Fontaine Jul 19 '13 at 11:40
  • it's already the same thing in 2.2. if I test getLocationUrlsForPath("com/me/app/sql/migration") no url found but getLocationUrlsForPath("com/me/app/sql/migration/") the url are found. and flyway remove the last "/" so it can't works – agonist_ Jul 22 '13 at 07:13
  • Please file a bug in the issue tracker. Don't forget to include what environment are you on (OS, JDK, AppServer + versions) – Axel Fontaine Jul 25 '13 at 17:03

0 Answers0