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

Move the core plugins into plugins.xml.

This commit is contained in:
Cedric Beust 2015-11-06 18:36:29 -08:00
parent 23d9924242
commit 23cb52cacf
6 changed files with 38 additions and 38 deletions

View file

@ -64,6 +64,13 @@ private class Main @Inject constructor(
public fun run(jc: JCommander, args: Args) : Int {
//
// Add all the plugins read in plugin.xml to the Plugins singleton, so that code
// in the build file that calls Plugins.findPlugin() can find them (code in the
// build file do not have access to the KobaltContext).
//
pluginInfo.plugins.forEach { Plugins.addPluginInstance(it) }
if (args.client) {
client.run()
return 0