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

Pass the class loader to archetypes.

This commit is contained in:
Cedric Beust 2016-02-14 09:45:55 -08:00
parent 7963e2fc99
commit 471410a9bc
5 changed files with 11 additions and 9 deletions

View file

@ -58,7 +58,7 @@ class PomTest @Inject constructor() : KobaltTest() {
args.buildFile = file.absolutePath
args.archetypes = "java"
ProjectGenerator(Kobalt.INJECTOR.getInstance(PluginInfo::class.java)).run(args)
ProjectGenerator(Kobalt.INJECTOR.getInstance(PluginInfo::class.java)).run(args, javaClass.classLoader)
var contents = file.readText()
Assert.assertTrue(contents.contains("group = \"${pom.groupId}\""), "Should find the group defined")