Package io.quarkus.deployment.pkg.jar
Class ParallelCommonsCompressArchiveCreator
java.lang.Object
io.quarkus.deployment.pkg.jar.ParallelCommonsCompressArchiveCreator
- All Implemented Interfaces:
ArchiveCreator,AutoCloseable
This ArchiveCreator may not be used to build Uberjars.
We need the entries to be immutable here, and in the case of Uberjars, we mutate the MANIFEST.MF at the end.
It would probably not be that hard to support it though, by storing the Manifest instance, and allow getting it/setting it again, and adding it first in close().
-
Field Summary
Fields inherited from interface io.quarkus.deployment.pkg.jar.ArchiveCreator
CURRENT_APPLICATION, UNKNOWN_SOURCE -
Constructor Summary
ConstructorsConstructorDescriptionParallelCommonsCompressArchiveCreator(Path archivePath, boolean compressed, Instant entryTimestamp, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirectory(String directory, String source) voidvoidvoidvoidaddFileIfNotExists(byte[] bytes, String target, String source) voidaddFileIfNotExists(Path origin, String target, String source) voidaddManifest(Manifest manifest) voidclose()booleanvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.deployment.pkg.jar.ArchiveCreator
addDirectory, addFile, addFile, addFile, addFileIfNotExists, addFileIfNotExists
-
Constructor Details
-
ParallelCommonsCompressArchiveCreator
ParallelCommonsCompressArchiveCreator(Path archivePath, boolean compressed, Instant entryTimestamp, ExecutorService executorService) throws IOException - Throws:
IOException
-
-
Method Details
-
addManifest
- Specified by:
addManifestin interfaceArchiveCreator- Throws:
IOException
-
addDirectory
- Specified by:
addDirectoryin interfaceArchiveCreator- Throws:
IOException
-
addFile
- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFile
- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFileIfNotExists
- Specified by:
addFileIfNotExistsin interfaceArchiveCreator- Throws:
IOException
-
addFileIfNotExists
- Specified by:
addFileIfNotExistsin interfaceArchiveCreator- Throws:
IOException
-
addFile
- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
isMultiVersion
public boolean isMultiVersion()- Specified by:
isMultiVersionin interfaceArchiveCreator
-
makeMultiVersion
- Specified by:
makeMultiVersionin interfaceArchiveCreator- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceArchiveCreator- Specified by:
closein interfaceAutoCloseable
-