Skip to content

Commit

Permalink
Fixed #1023: Flyway should not expect "org/flywaydb/core/internal/ver…
Browse files Browse the repository at this point in the history
…sion.txt" to be on the custom classpath
  • Loading branch information
Axel Fontaine committed Oct 28, 2015
1 parent 2350ad3 commit ed3dbc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ private VersionPrinter() {
/**
* Prints the Flyway version.
*/
public static void printVersion(ClassLoader classLoader) {
public static void printVersion() {
if (printed) {
return;
}
printed = true;
String version = new ClassPathResource("org/flywaydb/core/internal/version.txt", classLoader).loadAsString("UTF-8");
String version = new ClassPathResource("org/flywaydb/core/internal/version.txt", VersionPrinter.class.getClassLoader()).loadAsString("UTF-8");
LOG.info("Flyway " + version + " by Boxfuse");
}
}

0 comments on commit ed3dbc0

Please sign in to comment.