1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-08-09 00:11:54 -08:00
parent 6e8d5d8d1a
commit 8a672ad764
2 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager)
//
val manifest =
if (jar.attributes.size > 1) {
log(2, "Creating MANIFEST.MF from " + jar.attributes.size + " attributes")
context.logger.log(project.name, 2, "Creating MANIFEST.MF from " + jar.attributes.size + " attributes")
Manifest().apply {
jar.attributes.forEach { attribute ->
mainAttributes.putValue(attribute.first, attribute.second)
@ -149,7 +149,7 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager)
val manifestFile = findManifestFile(project, includedFiles)
if (manifestFile != null) {
log(2, "Including MANIFEST.MF file $manifestFile")
context.logger.log(project.name, 2, "Including MANIFEST.MF file $manifestFile")
Manifest(FileInputStream(manifestFile))
} else {
Manifest()

View file

@ -31,7 +31,7 @@ class Archives {
val fullArchiveName = context.variant.archiveName(project, archiveName, suffix)
val archiveDir = File(KFiles.libsDir(project))
val result = File(archiveDir.path, fullArchiveName)
log(3, "Creating $result")
context.logger.log(project.name, 3, "Creating $result")
if (! Features.USE_TIMESTAMPS || isOutdated(project.directory, includedFiles, result)) {
try {
outputStreamFactory(FileOutputStream(result)).use {