Skip to content

Commit 93c3b22

Browse files
committed
Merge branch '1.2.x'
2 parents a05a5b3 + c71aa32 commit 93c3b22

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ else if (this.flywayDataSource != null) {
133133
else {
134134
flyway.setDataSource(this.dataSource);
135135
}
136-
// TODO: remove this line once SPR-13749 is fixed
137136
flyway.setLocations(this.properties.getLocations().toArray(new String[0]));
138-
139137
return flyway;
140138
}
141139

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2014 the original author or authors.
2+
* Copyright 2012-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -545,19 +545,13 @@ private Archive createArchiveIfPossible(URL url)
545545
if (url.toString().endsWith(".jar") || url.toString().endsWith(".zip")) {
546546
return new JarFileArchive(new File(url.toURI()));
547547
}
548-
else if (url.toString().endsWith("/*")) {
548+
if (url.toString().endsWith("/*")) {
549549
String name = url.getFile();
550550
File dir = new File(name.substring(0, name.length() - 1));
551-
if (dir.exists()) {
552-
return new ExplodedArchive(new File(name.substring(0, name.length() - 1)),
553-
false);
554-
}
555-
}
556-
else {
557-
String filename = URLDecoder.decode(url.getFile(), "UTF-8");
558-
return new ExplodedArchive(new File(filename));
551+
return (dir.exists() ? new ExplodedArchive(dir, false) : null);
559552
}
560-
return null;
553+
String filename = URLDecoder.decode(url.getFile(), "UTF-8");
554+
return new ExplodedArchive(new File(filename));
561555
}
562556

563557
private void addNestedArchivesFromParent(List<Archive> urls) {

0 commit comments

Comments
 (0)