Skip to content

Commit 49af74e

Browse files
committed
Repackager: pluggable layouts. Introduced NULL layout. This is what NONE should be.
1 parent 59fcc14 commit 49af74e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPluginExtension.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ import org.springframework.boot.loader.tools.Layouts
4141
*/
4242
public class SpringBootPluginExtension {
4343

44-
/**
45-
* Launcher class, replaces the default specified by layout. Optional.
46-
*/
47-
String launcherClass;
44+
/**
45+
* Launcher class, replaces the default specified by layout. Optional.
46+
*/
47+
String launcherClass;
4848

49-
/**
49+
/**
5050
* The main class that should be run. Instead of setting this explicitly you can use the
5151
* 'mainClassName' of the project or the 'main' of the 'run' task. If not specified the
5252
* value from the MANIFEST will be used, or if no manifest entry is the archive will be

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.springframework.boot.loader.tools;
1818

19+
import org.springframework.boot.loader.tools.layout.BaseLayout;
20+
1921
import java.io.File;
2022
import java.util.Arrays;
2123
import java.util.Collections;
@@ -156,6 +158,11 @@ public boolean isExecutable() {
156158

157159
}
158160

161+
/**
162+
* This is what NONE should be.
163+
*/
164+
public static class Null extends BaseLayout {}
165+
159166
/**
160167
* Executable WAR layout.
161168
*/

0 commit comments

Comments
 (0)