mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Move JarTemplate to kobalt-plugin-api so plug-ins can use it.
This commit is contained in:
parent
7a81a1bcfa
commit
6cf9f6e99f
2 changed files with 2 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
||||||
package com.beust.kobalt.app
|
package com.beust.kobalt.api
|
||||||
|
|
||||||
import com.beust.kobalt.Args
|
import com.beust.kobalt.Args
|
||||||
import com.beust.kobalt.api.ITemplate
|
|
||||||
import com.beust.kobalt.misc.log
|
import com.beust.kobalt.misc.log
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.FileOutputStream
|
import java.io.FileOutputStream
|
||||||
|
@ -33,10 +32,6 @@ abstract class JarTemplate(val jarName: String) : ITemplate {
|
||||||
entry = ins.nextEntry
|
entry = ins.nextEntry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun log(level: Int, s: String) {
|
|
||||||
println(" " + s)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun generateTemplate(args: Args, classLoader: ClassLoader) {
|
override fun generateTemplate(args: Args, classLoader: ClassLoader) {
|
|
@ -1,6 +1,7 @@
|
||||||
package com.beust.kobalt.app
|
package com.beust.kobalt.app
|
||||||
|
|
||||||
import com.beust.kobalt.api.ITemplateContributor
|
import com.beust.kobalt.api.ITemplateContributor
|
||||||
|
import com.beust.kobalt.api.JarTemplate
|
||||||
import com.beust.kobalt.plugin.KobaltPlugin
|
import com.beust.kobalt.plugin.KobaltPlugin
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue