lein clean临时输出文件夹

时间:2016-07-15 04:18:43

标签: clojure clojurescript leiningen

我的 project.clj 文件

中有以下内容
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));

si.dwX = x;
si.dwY = y;
si.dwXSize = w;
si.dwYSize = h;

// any flags I can set to give the STARTUPINFO dimensions priority?
si.dwFlags = ??

CreateProcess(_T("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"), _T(""),
NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL,
NULL, &si, &pi);

.....

:clean-targets [:target-path
                  :compile-path "classes"
                  :output-paths ["build/js/output" "js/output" "output"]
                  "build/js/main.js.map"
                  ]

尝试运行:output-to "build/js/main.js", :output-dir "build/js/output" :optimizations :simple, :source-map "build/js/main.js.map", :asset-path "js/out" 时,“build / js / output”文件不会被删除。 “output-dir”目录是否受到保护?

1 个答案:

答案 0 :(得分:1)

默认情况下lein clean仅删除target目录。您可以通过在project.clj中设置:clean-targets来自定义应清理哪些目录:

:clean-targets [:target-path "build/js/output"]