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

More moving classes around.

This commit is contained in:
Cedric Beust 2015-12-15 04:37:46 +04:00
parent 3592243bd8
commit 6b1b141943
22 changed files with 281 additions and 261 deletions

View file

@ -410,21 +410,6 @@ open class Zip(open var name: String? = null) {
}
open class Direction(open val p: String) {
override public fun toString() = path
public val path: String get() = if (p.isEmpty() or p.endsWith("/")) p else p + "/"
}
class IncludedFile(val fromOriginal: From, val toOriginal: To, val specs: List<IFileSpec>) {
constructor(specs: List<IFileSpec>) : this(From(""), To(""), specs)
public val from: String get() = fromOriginal.path.replace("\\", "/")
public val to: String get() = toOriginal.path.replace("\\", "/")
override public fun toString() = toString("IncludedFile",
"files", specs.map { it.toString() }.joinToString(", "),
"from", from,
"to", to)
}
interface AttributeHolder {
fun addAttribute(k: String, v: String)
}