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) voidFirst-write wins, subsequent additions of the same file will generate a warning.voidFirst-write wins, subsequent additions of the same file will generate a warning.voidFirst-write wins, subsequent additions of the same file will generate a warning.voidaddFileIfNotExists(byte[] bytes, String target, String source) First-write wins but don't generate a warning if an entry with this name already exists.voidaddFileIfNotExists(Path origin, String target, String source) First-write wins but don't generate a warning if an entry with this name already exists.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
First-write wins, subsequent additions of the same file will generate a warning.Use
addFileIfNotExists(Path, String, String)if you expect a second write to be an expected behavior. It has the same first-write wins behavior but won't generate a warning.- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFile
First-write wins, subsequent additions of the same file will generate a warning.Use
addFileIfNotExists(byte[], String, String)if you expect a second write to be an expected behavior. It has the same first-write wins behavior but won't generate a warning.- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFile
First-write wins, subsequent additions of the same file will generate a warning.- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFileIfNotExists
First-write wins but don't generate a warning if an entry with this name already exists.- Specified by:
addFileIfNotExistsin interfaceArchiveCreator- Throws:
IOException
-
addFileIfNotExists
First-write wins but don't generate a warning if an entry with this name already exists.- Specified by:
addFileIfNotExistsin 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
-