我这里有一个简单的项目:
https://github.com/bloo/foo-gen-config/ https://github.com/bloo/foo-gen-config/
.. 只做一件事 - 加载 sbt 并运行任务foo-gen,失败了。
任务定义在这里:
https://github.com/bloo/foo-gen-config/blob/master/project/FooConfigPlugin.scala#L19-L25 https://github.com/bloo/foo-gen-config/blob/master/project/FooConfigPlugin.scala#L19-L25
(我在这里提到了这个问题以及其他一些复杂的问题:如何使 sbt 任务使用特定的配置范围? https://stackoverflow.com/questions/11845176/how-to-make-a-sbt-task-use-a-specific-configuration-scope但后来将其归结为我需要帮助的一个问题)
我愿意接受有关如何处理此问题的建议,但我绝对想保留应用程序配置文件 in src/主/资源。谢谢!
快速开始:
git clone https://github.com/bloo/foo-gen-config.git
cd foo-gen-config/
sbt foo-gen
35 美元赏金
https://www.bountysource.com/issues/1450100-how-to-load-application-conf-via-typesafe-s-configfactory-within-an-sbt-task https://www.bountysource.com/issues/1450100-how-to-load-application-conf-via-typesafe-s-configfactory-within-an-sbt-task
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)