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:
Andrey Stolyarov
2015-10-14 12:46:04 +03:00
committed by Phillip Webb
parent b1aebe6075
commit 9a63e574b6
16 changed files with 380 additions and 45 deletions

View 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")
}
}