Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
843ee14c
Commit
843ee14c
authored
Dec 17, 2014
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.1.x'
parents
ff714f6c
5c67e6f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Layouts.java
...n/java/org/springframework/boot/loader/tools/Layouts.java
+1
-0
LayoutsTests.java
...a/org/springframework/boot/loader/tools/LayoutsTests.java
+5
-0
No files found.
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Layouts.java
View file @
843ee14c
...
...
@@ -119,6 +119,7 @@ public class Layouts {
static
{
Map
<
LibraryScope
,
String
>
map
=
new
HashMap
<
LibraryScope
,
String
>();
map
.
put
(
LibraryScope
.
COMPILE
,
"WEB-INF/lib/"
);
map
.
put
(
LibraryScope
.
CUSTOM
,
"WEB-INF/lib/"
);
map
.
put
(
LibraryScope
.
RUNTIME
,
"WEB-INF/lib/"
);
map
.
put
(
LibraryScope
.
PROVIDED
,
"WEB-INF/lib-provided/"
);
SCOPE_DESTINATIONS
=
Collections
.
unmodifiableMap
(
map
);
...
...
spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/LayoutsTests.java
View file @
843ee14c
...
...
@@ -31,6 +31,7 @@ import static org.junit.Assert.assertThat;
* Tests for {@link Layouts}.
*
* @author Phillip Webb
* @author Andy Wilkinson
*/
public
class
LayoutsTests
{
...
...
@@ -65,6 +66,8 @@ public class LayoutsTests {
Layout
layout
=
new
Layouts
.
Jar
();
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
COMPILE
),
equalTo
(
"lib/"
));
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
CUSTOM
),
equalTo
(
"lib/"
));
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
PROVIDED
),
equalTo
(
"lib/"
));
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
RUNTIME
),
...
...
@@ -76,6 +79,8 @@ public class LayoutsTests {
Layout
layout
=
new
Layouts
.
War
();
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
COMPILE
),
equalTo
(
"WEB-INF/lib/"
));
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
CUSTOM
),
equalTo
(
"WEB-INF/lib/"
));
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
PROVIDED
),
equalTo
(
"WEB-INF/lib-provided/"
));
assertThat
(
layout
.
getLibraryDestination
(
"lib.jar"
,
LibraryScope
.
RUNTIME
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment