1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00
This commit is contained in:
Cedric Beust 2018-02-03 11:40:07 -08:00
parent 7d27cd144d
commit d7a95d0c0c

View file

@ -17,9 +17,9 @@ import org.apache.commons.compress.archivers.zip.ZipFile as ApacheZipFile
* Abstraction of a zip/jar/war archive that automatically manages the addition of expanded jar files.
* Uses ZipArchiveOutputStream for fast inclusion of expanded jar files.
*/
class MetaArchive(private val outputFile: File, val manifest: Manifest?) : Closeable {
class MetaArchive(outputFile: File, val manifest: Manifest?) : Closeable {
companion object {
val MANIFEST_MF = "META-INF/MANIFEST.MF"
const val MANIFEST_MF = "META-INF/MANIFEST.MF"
}
private val zos= ZipArchiveOutputStream(outputFile).apply {
@ -63,6 +63,7 @@ class MetaArchive(private val outputFile: File, val manifest: Manifest?) : Close
}
}
@Suppress("PrivatePropertyName")
private val DEFAULT_JAR_EXCLUDES =
Glob("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA", "META-INF/MANIFEST.MF")