Java 和 Clojure 与 Leiningen
是否可以在使用 leiningen 的项目中轻松管理和编译本机 Java 类以及 Clojure?
我的工作水平相当低(使用 netty nio),并且认为一些管道类实际上在构建代码和性能方面更容易作为原始 java 进行处理。
Is it possible to easily manage and compile native Java classes alongside Clojure in a project using leiningen?
I am working at a pretty low level (with netty nio) and thinking that some of the plumbing classes would actually be easier to handle as raw java both in terms of constructing the code as well as performance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从 Leiningen 2.x 开始,
:java-source-path
已替换为:java-source-paths
,其值现在指定为向量而不是字符串。查找 Leiningen 功能的完整(最新)文档的一个好地方是仔细阅读 示例项目文件。在这种情况下,您将看到:
:java-source-paths ["src/main/java"]
As of Leiningen 2.x,
:java-source-path
has been replaced with:java-source-paths
, whose value is now specified as a vector rather than a string.A good place to find a full (up-to-date) documentation of Leiningen features is to peruse the sample project file. In this case, you will see:
:java-source-paths ["src/main/java"]
在Leiningen教程中有以下声明
所以如果设置了
:java-source-paths
选项,它应该可以开箱即用In Leiningen tutorial there is following statement
so it should work out of box if
:java-source-paths
option is set使用Vinyasa - 我专门写它来处理这个问题
这是一篇博客文章在 emacs/nrepl 中动态重新加载 java 代码
Use Vinyasa - I wrote it especially to deal with this problem
Here is a blog post Dynamic reloading of java code in emacs/nrepl