如何在`lein repl`运行时重新编译并重新加载Java源代码? [英] How do I recompile and reload Java source code while `lein repl` is running?

查看:99
本文介绍了如何在`lein repl`运行时重新编译并重新加载Java源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Clojure项目,正在使用leiningen.我还使用tools.namespace在运行REPL时重新加载Clojure代码.如果要在项目中包含Java源代码,可以在REPL运行时重新编译并重新加载它吗?最方便/最动态的方式是什么?我可以这样做,使其与tools.namespace一起正常工作吗?

I have a Clojure project, and I'm using leiningen. I'm also using tools.namespace to reload Clojure code while running a REPL. If I want to include Java source in the project, can I recompile and reload it while the REPL is running? What is the most convenient/dynamic way of doing it? Can I do it so that it works well with tools.namespace?

推荐答案

我在这里回答自己的赏金问题,但是我做了一些工作来解决这个问题:

I'm answering my own bounty here but I did do a bit of work getting this up:

使用 Vinyasa

这是一篇博客文章:

在emacs/nrepl中动态重载Java代码

...实际上...有点不起作用了...您必须回到较早的版本才能获得支持.

... actually... it's kinda not working anymore... you have to do back to the earlier versions in order to get the support.

这篇关于如何在`lein repl`运行时重新编译并重新加载Java源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆