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

standardize use of Directive (on methods/props)

This commit is contained in:
Juan Liska 2017-02-15 12:10:41 -06:00
parent 6b08856b7b
commit 7ad54766c0

View file

@ -17,15 +17,17 @@ import com.google.inject.Inject
import com.google.inject.Singleton
import java.io.File
@Directive
class ApplicationConfig {
@Directive
var mainClass: String? = null
val jvmArgs = arrayListOf<String>()
@Directive
fun jvmArgs(vararg args: String) = args.forEach { jvmArgs.add(it) }
val jvmArgs = arrayListOf<String>()
val args = arrayListOf<String>()
@Directive
fun args(vararg argv: String) = argv.forEach { args.add(it) }
val args = arrayListOf<String>()
}
@Directive