Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SBT插件中的taskKey[配置]_Sbt - Fatal编程技术网

SBT插件中的taskKey[配置]

SBT插件中的taskKey[配置],sbt,Sbt,我正在编写一个SBT插件,我必须访问fullClasspath。不过,我必须确定它的范围。在我的代码库中,我做到了 fullClasspath in Test 但通过这样做,我假设我的插件将在测试上下文中运行。我希望用户能够在配置(val myConf=config(“我的配置”))上定义自己的配置,并将它们与我的插件一起使用。我想知道是否 val configuration = taskKey[Configuration]("...") 或者有可能出现类似的情况。当使用

我正在编写一个SBT插件,我必须访问
fullClasspath
。不过,我必须确定它的范围。在我的代码库中,我做到了

fullClasspath in Test
但通过这样做,我假设我的插件将在测试上下文中运行。我希望用户能够在配置(
val myConf=config(“我的配置”)
)上定义自己的配置,并将它们与我的插件一起使用。我想知道是否

val configuration = taskKey[Configuration]("...")
或者有可能出现类似的情况。当使用这个特殊的解决方案时,我得到了一个错误

fullClasspath in configuration
> Reference to undefined setting: configuration / fullClasspath