mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Features.
This commit is contained in:
parent
56d52e69f3
commit
a96f0367cb
4 changed files with 16 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
package com.beust.kobalt.plugin.packaging
|
||||
|
||||
import com.beust.kobalt.Features
|
||||
import com.beust.kobalt.IFileSpec
|
||||
import com.beust.kobalt.IFileSpec.FileSpec
|
||||
import com.beust.kobalt.IFileSpec.Glob
|
||||
|
@ -238,7 +239,7 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
|
|||
val archiveDir = File(libsDir(project))
|
||||
val result = File(archiveDir.path, fullArchiveName)
|
||||
log(2, "Creating $result")
|
||||
if (isOutdated(project.directory, includedFiles, result)) {
|
||||
if (! Features.USE_TIMESTAMPS || isOutdated(project.directory, includedFiles, result)) {
|
||||
val outStream = outputStreamFactory(FileOutputStream(result))
|
||||
JarUtils.addFiles(project.directory, includedFiles, outStream, expandJarFiles)
|
||||
log(2, text = "Added ${includedFiles.size} files to $result")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue