leiningen 在 Clojure 中用 cake 运行任务
我最近开始将 cake 作为 leiningen 的替代品,因为它使用单个 jvm 实例,因此速度更快。但是,它的 run
任务与 leiningen 的不太一样,我在 cake 中找不到任何只在我在 中指定的命名空间中运行 -main
方法的任务project.clj
文件。蛋糕有这样的任务吗?
另一方面,我尝试编写一个自定义的蛋糕任务来为我启动应用程序,但我遇到了导入错误,这让我认为这可能是完整的 CLASSPATH 执行任务时不会构建。
那么,有没有一个与 cake 等同于 lein run
的任务呢?
I have recently started looking at cake as an alternative to leiningen as it uses a single jvm instance and so is much faster. However, its run
task is not quite the same as leiningen's and I can't find any task in cake that just runs the -main
method in the namespace I specify in the project.clj
file. Does cake have any such task?
On the other hand, I tried writing a custom cake task which launched the app for me, but I was getting import errors, which make me think that may be the complete CLASSPATH
is not built when the tasks are executed.
So, is there a task with cake that is equivalent to lein run
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前不存在。我会添加它。
当前运行任务只是运行一个文件。尝试向其传递一个 Clojure 文件来运行。
This doesn't currently exist. I'll add it.
The current run task just runs a file. Try passing it a Clojure file to run.
蛋糕进展得很快,据我所知,它的运行应该是一样的。
确保您正在运行最新的蛋糕代码(因为它经常变化),也许
如果您将其放在邮件列表中,您就会得到修复。
cake is advancing quickly and so far as I understand it run is supposed to be the same.
Make sure you are running the latest cake code (because it changes often) and perhaps
you will get it fixed if you bring it up on the mailing list.