mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Rename to ParallelLogger.
This commit is contained in:
parent
e639c72b2f
commit
fa6820e440
10 changed files with 16 additions and 16 deletions
|
@ -4,7 +4,7 @@ import com.beust.kobalt.api.KobaltContext
|
|||
import com.beust.kobalt.api.Project
|
||||
import com.beust.kobalt.archive.Archives
|
||||
import com.beust.kobalt.archive.Jar
|
||||
import com.beust.kobalt.internal.KobaltLog
|
||||
import com.beust.kobalt.internal.ParallelLogger
|
||||
import com.beust.kobalt.maven.DependencyManager
|
||||
import com.beust.kobalt.maven.aether.Scope
|
||||
import com.beust.kobalt.misc.*
|
||||
|
@ -122,7 +122,7 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager)
|
|||
return result
|
||||
}
|
||||
|
||||
fun generateJar(project: Project, context: KobaltContext, jar: Jar, kobaltLog: KobaltLog) : File {
|
||||
fun generateJar(project: Project, context: KobaltContext, jar: Jar, kobaltLog: ParallelLogger) : File {
|
||||
val includedFiles = findIncludedFiles(project, context, jar)
|
||||
|
||||
//
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.beust.kobalt.IFileSpec
|
|||
import com.beust.kobalt.api.KobaltContext
|
||||
import com.beust.kobalt.api.Project
|
||||
import com.beust.kobalt.api.annotation.ExportedProjectProperty
|
||||
import com.beust.kobalt.internal.KobaltLog
|
||||
import com.beust.kobalt.internal.ParallelLogger
|
||||
import com.beust.kobalt.misc.*
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
|
@ -29,7 +29,7 @@ class Archives {
|
|||
includedFiles: List<IncludedFile>,
|
||||
expandJarFiles : Boolean = false,
|
||||
outputStreamFactory: (OutputStream) -> ZipOutputStream = DEFAULT_STREAM_FACTORY,
|
||||
kobaltLog: KobaltLog) : File {
|
||||
kobaltLog: ParallelLogger) : File {
|
||||
val fullArchiveName = context.variant.archiveName(project, archiveName, suffix)
|
||||
val archiveDir = File(KFiles.libsDir(project))
|
||||
val result = File(archiveDir.path, fullArchiveName)
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentLinkedQueue
|
|||
* Yes, this code was pretty painful to write and I'm pretty sure it still have a few bugs left.
|
||||
*/
|
||||
@Singleton
|
||||
class KobaltLog @Inject constructor(val args: Args) {
|
||||
class ParallelLogger @Inject constructor(val args: Args) {
|
||||
enum class Type { LOG, WARN, ERROR }
|
||||
|
||||
class LogLine(val name: String? = null, val level: Int, val message: String, val type: Type)
|
|
@ -21,7 +21,7 @@ class ParallelProjectRunner(val tasksByNames: (Project) -> ListMultimap<String,
|
|||
val reverseDependsOn: TreeMultimap<String, String>, val runBefore: TreeMultimap<String, String>,
|
||||
val runAfter: TreeMultimap<String, String>,
|
||||
val alwaysRunAfter: TreeMultimap<String, String>, val args: Args, val pluginInfo: PluginInfo,
|
||||
val kobaltLog: KobaltLog)
|
||||
val kobaltLog: ParallelLogger)
|
||||
: BaseProjectRunner() {
|
||||
override fun runProjects(taskInfos: List<TaskManager.TaskInfo>, projects: List<Project>)
|
||||
: TaskManager .RunTargetResult {
|
||||
|
|
|
@ -17,7 +17,7 @@ import javax.inject.Singleton
|
|||
@Singleton
|
||||
class TaskManager @Inject constructor(val args: Args,
|
||||
val incrementalManagerFactory: IncrementalManager.IFactory,
|
||||
val pluginInfo: PluginInfo, val kobaltLog: KobaltLog) {
|
||||
val pluginInfo: PluginInfo, val kobaltLog: ParallelLogger) {
|
||||
private val dependsOn = TreeMultimap.create<String, String>()
|
||||
private val reverseDependsOn = TreeMultimap.create<String, String>()
|
||||
private val runBefore = TreeMultimap.create<String, String>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue