mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Logging.
This commit is contained in:
parent
6e8d5d8d1a
commit
8a672ad764
2 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager)
|
||||||
//
|
//
|
||||||
val manifest =
|
val manifest =
|
||||||
if (jar.attributes.size > 1) {
|
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 {
|
Manifest().apply {
|
||||||
jar.attributes.forEach { attribute ->
|
jar.attributes.forEach { attribute ->
|
||||||
mainAttributes.putValue(attribute.first, attribute.second)
|
mainAttributes.putValue(attribute.first, attribute.second)
|
||||||
|
@ -149,7 +149,7 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager)
|
||||||
|
|
||||||
val manifestFile = findManifestFile(project, includedFiles)
|
val manifestFile = findManifestFile(project, includedFiles)
|
||||||
if (manifestFile != null) {
|
if (manifestFile != null) {
|
||||||
log(2, "Including MANIFEST.MF file $manifestFile")
|
context.logger.log(project.name, 2, "Including MANIFEST.MF file $manifestFile")
|
||||||
Manifest(FileInputStream(manifestFile))
|
Manifest(FileInputStream(manifestFile))
|
||||||
} else {
|
} else {
|
||||||
Manifest()
|
Manifest()
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Archives {
|
||||||
val fullArchiveName = context.variant.archiveName(project, archiveName, suffix)
|
val fullArchiveName = context.variant.archiveName(project, archiveName, suffix)
|
||||||
val archiveDir = File(KFiles.libsDir(project))
|
val archiveDir = File(KFiles.libsDir(project))
|
||||||
val result = File(archiveDir.path, fullArchiveName)
|
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)) {
|
if (! Features.USE_TIMESTAMPS || isOutdated(project.directory, includedFiles, result)) {
|
||||||
try {
|
try {
|
||||||
outputStreamFactory(FileOutputStream(result)).use {
|
outputStreamFactory(FileOutputStream(result)).use {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue