Polish
This commit is contained in:
@@ -372,7 +372,7 @@ public abstract class MainClassFinder {
|
||||
|
||||
/**
|
||||
* Handle the specified main class.
|
||||
* @param mainClass the mainClass
|
||||
* @param mainClass the main class
|
||||
* @return a non-null value if processing should end or {@code null} to continue
|
||||
*/
|
||||
T doWith(MainClass mainClass);
|
||||
|
||||
@@ -55,15 +55,15 @@ public class AbstractExecutableArchiveLauncherTests {
|
||||
jarOutputStream.putNextEntry(new JarEntry(entryPrefix + "/"));
|
||||
jarOutputStream.putNextEntry(new JarEntry(entryPrefix + "/classes/"));
|
||||
jarOutputStream.putNextEntry(new JarEntry(entryPrefix + "/lib/"));
|
||||
JarEntry webInfLibFoo = new JarEntry(entryPrefix + "/lib/foo.jar");
|
||||
webInfLibFoo.setMethod(ZipEntry.STORED);
|
||||
JarEntry libFoo = new JarEntry(entryPrefix + "/lib/foo.jar");
|
||||
libFoo.setMethod(ZipEntry.STORED);
|
||||
ByteArrayOutputStream fooJarStream = new ByteArrayOutputStream();
|
||||
new JarOutputStream(fooJarStream).close();
|
||||
webInfLibFoo.setSize(fooJarStream.size());
|
||||
libFoo.setSize(fooJarStream.size());
|
||||
CRC32 crc32 = new CRC32();
|
||||
crc32.update(fooJarStream.toByteArray());
|
||||
webInfLibFoo.setCrc(crc32.getValue());
|
||||
jarOutputStream.putNextEntry(webInfLibFoo);
|
||||
libFoo.setCrc(crc32.getValue());
|
||||
jarOutputStream.putNextEntry(libFoo);
|
||||
jarOutputStream.write(fooJarStream.toByteArray());
|
||||
jarOutputStream.close();
|
||||
return archive;
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</build>
|
||||
...
|
||||
</project>
|
||||
+---
|
||||
---
|
||||
|
||||
The layout factory is provided as an implementation of <<<LayoutFactory>>> (from
|
||||
spring-boot-loader-tools) explicitly specified in the pom. If there is only one custom
|
||||
|
||||
Reference in New Issue
Block a user