Update packaged JARs to use standard JarLauncher

Change CLI generated JARs to use the standard `JarLauncher` instead of
a custom `JarRunner`. The `PackagedSpringApplicationLauncher` is used
as the `Start-Class` which in turn calls `SpringApplication.run()`.
This commit is contained in:
Phillip Webb
2014-01-29 14:38:36 -08:00
parent 5cf2387e58
commit c852fb5a79
8 changed files with 137 additions and 209 deletions

View File

@@ -44,6 +44,7 @@ import java.util.zip.ZipEntry;
* items are ignored.
*
* @author Phillip Webb
* @author Andy Wilkinson
*/
public class JarWriter {
@@ -109,7 +110,6 @@ public class JarWriter {
/**
* Writes an entry. The {@code inputStream} is closed once the entry has been written
*
* @param entryName The name of the entry
* @param inputStream The stream from which the entry's data can be read
* @throws IOException if the write fails
@@ -123,7 +123,7 @@ public class JarWriter {
* Write a nested library.
* @param destination the destination of the library
* @param file the library file
* @throws IOException
* @throws IOException if the write fails
*/
public void writeNestedLibrary(String destination, File file) throws IOException {
JarEntry entry = new JarEntry(destination + file.getName());