mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Settings for Kobalt.
~/.kobalt/settings.xml.
This commit is contained in:
parent
24bd2c6299
commit
27d6332ea4
8 changed files with 81 additions and 13 deletions
|
@ -1,14 +1,20 @@
|
|||
package com.beust.kobalt
|
||||
|
||||
import com.beust.kobalt.Args
|
||||
import com.beust.kobalt.maven.LocalRepo
|
||||
import com.beust.kobalt.app.MainModule
|
||||
import com.beust.kobalt.internal.KobaltSettings
|
||||
import com.beust.kobalt.internal.KobaltSettingsXml
|
||||
import com.beust.kobalt.maven.LocalRepo
|
||||
import com.google.inject.Scopes
|
||||
import java.io.File
|
||||
|
||||
class TestLocalRepo: LocalRepo(localRepo = SystemProperties.homeDir + File.separatorChar + ".kobalt-test")
|
||||
val TEST_KOBALT_SETTINGS = KobaltSettings(KobaltSettingsXml()).apply {
|
||||
localRepo = SystemProperties.homeDir + File.separatorChar + "" +
|
||||
".kobalt-test"
|
||||
}
|
||||
|
||||
public class TestModule : MainModule(Args()) {
|
||||
class TestLocalRepo: LocalRepo(TEST_KOBALT_SETTINGS)
|
||||
|
||||
public class TestModule : MainModule(Args(), TEST_KOBALT_SETTINGS) {
|
||||
override fun configureTest() {
|
||||
bind(LocalRepo::class.java).to(TestLocalRepo::class.java).`in`(Scopes.SINGLETON)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue