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

Merge pull request #328 from pabl0rg/master

standardize use of Directive (on methods/props)
This commit is contained in:
Cedric Beust 2017-02-15 10:33:48 -08:00 committed by GitHub
commit d583eb0066

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