Add spring war command
Add a `war` command to the CLI to generate WAR archives. Fixes gh-925 Closes gh-4168
This commit is contained in:
committed by
Phillip Webb
parent
b1aebe6075
commit
9a63e574b6
16
spring-boot-cli/src/it/resources/war-command/war.groovy
Normal file
16
spring-boot-cli/src/it/resources/war-command/war.groovy
Normal file
@@ -0,0 +1,16 @@
|
||||
package org.test
|
||||
|
||||
@RestController
|
||||
class WarExample implements CommandLineRunner {
|
||||
|
||||
@RequestMapping("/")
|
||||
public String hello() {
|
||||
return "Hello"
|
||||
}
|
||||
|
||||
void run(String... args) {
|
||||
println getClass().getResource('/org/apache/tomcat/InstanceManager.class')
|
||||
throw new RuntimeException("onStart error")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user