1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

Helper functions.

This commit is contained in:
Cedric Beust 2016-02-09 23:56:57 +04:00
parent 9d1a5ed26e
commit 48feda51ad

View file

@ -2,9 +2,11 @@ package com.beust.kobalt.api
import com.beust.kobalt.TestConfig import com.beust.kobalt.TestConfig
import com.beust.kobalt.api.annotation.Directive import com.beust.kobalt.api.annotation.Directive
import com.beust.kobalt.internal.JvmCompilerPlugin
import com.beust.kobalt.maven.dependency.MavenDependency import com.beust.kobalt.maven.dependency.MavenDependency
import com.beust.kobalt.misc.KFiles import com.beust.kobalt.misc.KFiles
import com.beust.kobalt.misc.log import com.beust.kobalt.misc.log
import com.beust.kobalt.project
import java.io.File import java.io.File
import java.util.* import java.util.*
@ -67,13 +69,12 @@ open class Project(
val projectProperties = ProjectProperties() val projectProperties = ProjectProperties()
override fun equals(other: Any?): Boolean { override fun equals(other: Any?) = name == (other as Project).name
return name == (other as Project).name override fun hashCode() = name.hashCode()
}
override fun hashCode(): Int { /** Can be used by plug-ins */
return name.hashCode() val dependentProjects : List<ProjectDescription>
} get() = projectProperties.get(JvmCompilerPlugin.DEPENDENT_PROJECTS) as List<ProjectDescription>
companion object { companion object {
val DEFAULT_SOURCE_DIRECTORIES = setOf("src/main/java", "src/main/kotlin", "src/main/resources") val DEFAULT_SOURCE_DIRECTORIES = setOf("src/main/java", "src/main/kotlin", "src/main/resources")