【问题标题】:lein compile target-path configurationlein 编译目标路径配置
【发布时间】:2019-08-03 02:18:40
【问题描述】:

我需要一些关于 lein 的帮助。

我需要将我的程序编译为 build/classes/main/

Lein 将 /classes 附加到我在 project.clj :target-path 指定的任何文件夹中。

例如,如果我设置:

:target-path "build"

文件将在 build/classes 而不是 build/classes/main

生成

如果我设置:

:target-path "build/classes/main"

文件将在 build/classes/main/classes

生成

build/classes/main/ 是我的 grails 项目在打包 war 文件之前编译所有 Groovy 和 Java 类的地方。我的 Clojure .class 也必须在那里。

【问题讨论】:

    标签: clojure leiningen


    【解决方案1】:

    在你的 project.clj 中设置:compile-path

    :target-path "build"
    :compile-path "%s/classes/main"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-07
      • 2015-01-14
      • 1970-01-01
      • 2019-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多