Skip to content

Commit 843ee14

Browse files
committed
Merge branch '1.1.x'
2 parents ff714f6 + 5c67e6f commit 843ee14

File tree

2 files changed

+6
-0
lines changed
  • spring-boot-tools/spring-boot-loader-tools/src

2 files changed

+6
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public static class War implements Layout {
119119
static {
120120
Map<LibraryScope, String> map = new HashMap<LibraryScope, String>();
121121
map.put(LibraryScope.COMPILE, "WEB-INF/lib/");
122+
map.put(LibraryScope.CUSTOM, "WEB-INF/lib/");
122123
map.put(LibraryScope.RUNTIME, "WEB-INF/lib/");
123124
map.put(LibraryScope.PROVIDED, "WEB-INF/lib-provided/");
124125
SCOPE_DESTINATIONS = Collections.unmodifiableMap(map);

spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/LayoutsTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* Tests for {@link Layouts}.
3232
*
3333
* @author Phillip Webb
34+
* @author Andy Wilkinson
3435
*/
3536
public class LayoutsTests {
3637

@@ -65,6 +66,8 @@ public void jarLayout() throws Exception {
6566
Layout layout = new Layouts.Jar();
6667
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.COMPILE),
6768
equalTo("lib/"));
69+
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.CUSTOM),
70+
equalTo("lib/"));
6871
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.PROVIDED),
6972
equalTo("lib/"));
7073
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.RUNTIME),
@@ -76,6 +79,8 @@ public void warLayout() throws Exception {
7679
Layout layout = new Layouts.War();
7780
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.COMPILE),
7881
equalTo("WEB-INF/lib/"));
82+
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.CUSTOM),
83+
equalTo("WEB-INF/lib/"));
7984
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.PROVIDED),
8085
equalTo("WEB-INF/lib-provided/"));
8186
assertThat(layout.getLibraryDestination("lib.jar", LibraryScope.RUNTIME),

0 commit comments

Comments
 (0)