将类路径传递给构建器中基于 java/scala 的项目中的自定义任务
我正在使用 buildr 来构建我的 scala 项目,假设我想在源代码中运行主程序,我需要在 buildr 中定义自定义任务,这非常简单。但是,如何自动传递类路径依赖项?(即)假设您已经在构建器中添加了大量 jar 文件作为依赖项。无论如何,有没有要求构建者将它们展平并将其作为类路径提供,以便我可以将其传递给我的 scala 运行程序?我不想在构建器中手动构建类路径。 谢谢!
I am using buildr to build my scala project and suppose I want to run a main program among the source code, I need to define custom task within buildr which is very easy. However, how can I pass the classpath dependency automatically?(i.e) suppose you have a large number of jar files added already as dependency within buildr. Is there anyway to ask buildr to flatten them out and give it as a classpath so that I can pass it to my scala runner ? I don't want to manually construct the classpath within buildr.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不使用
buildr
,但在我看来,以下页面上的信息组合应该可以让您到达您想要的位置:I don't use
buildr
, but it seems to me that a combination of the information on the following pages should get you where you want to go: