Evaluate code inside the context of a project.
Evaluate code inside the context of a project.
Directory in which to start subprocesses with eval-in-project or sh.
Directory in which to start subprocesses with eval-in-project or sh.
Environment map with which to start subprocesses with eval-in-project or sh. Merged into the current environment unless ^:replace metadata is attached.
Environment map with which to start subprocesses with eval-in-project or sh. Merged into the current environment unless ^:replace metadata is attached.
Rebind this to false to disable forwarding in to subprocesses.
Rebind this to false to disable forwarding *in* to subprocesses.
(classpath-arg project)
Evaluate the given form in various contexts.
Evaluate the given form in various contexts.
(eval-in-project project form)
(eval-in-project project form init)
Executes form in isolation with the classpath and compile path set correctly for the project. If the form depends on any requires, put them in the init arg to avoid the Gilardi Scenario: http://technomancy.us/143
Executes form in isolation with the classpath and compile path set correctly for the project. If the form depends on any requires, put them in the init arg to avoid the Gilardi Scenario: http://technomancy.us/143
Returns a keyword naming the host architecture. Deprecated, use leiningen.core.utils/get-arch instead.
Returns a keyword naming the host architecture. Deprecated, use leiningen.core.utils/get-arch instead.
(get-jvm-opts-from-env env-opts)
Returns a keyword naming the host OS. Deprecated, use leiningen.core.utils/get-os instead.
Returns a keyword naming the host OS. Deprecated, use leiningen.core.utils/get-os instead.
(native-arch-paths project)
Paths to the os/arch-specific directory containing native libs.
Paths to the os/arch-specific directory containing native libs.
(parse-d-property jvm-arg)
Returns a file destination that will discard output. Deprecated, use leiningen.core.utils/platform-nullsink instead.
Returns a file destination that will discard output. Deprecated, use leiningen.core.utils/platform-nullsink instead.
(prep project)
Before we can run eval-in-project we need to prep the project by running javac, compile, and any other tasks the project specifies.
Before we can run eval-in-project we need to prep the project by running javac, compile, and any other tasks the project specifies.
Block on this to wait till the project is fully prepped.
Block on this to wait till the project is fully prepped.
(run-prep-tasks {:keys [prep-tasks] :as project})
Execute all the prep-tasks. A task can either be a string, or a vector if it takes arguments. see :prep-tasks in sample.project.clj for examples
Execute all the prep-tasks. A task can either be a string, or a vector if it takes arguments. see :prep-tasks in sample.project.clj for examples
(sh & cmd)
A version of clojure.java.shell/sh that streams in/out/err.
A version of clojure.java.shell/sh that streams in/out/err.
(sh-with-exit-code failure-message & cmd)
Applies SH to CMD and on a non-0 exit code, throws an Exception using FAILURE-MESSAGE. A period is appended to FAILURE-MESSAGE. Returns the exit code on success.
FAILURE-MESSAGE must satisfy string?
.
(first CMD) must satisfy string?
.
Applies SH to CMD and on a non-0 exit code, throws an Exception using FAILURE-MESSAGE. A period is appended to FAILURE-MESSAGE. Returns the exit code on success. FAILURE-MESSAGE must satisfy `string?`. (first CMD) must satisfy `string?`.
(shell-command project form)
Calculate vector of strings needed to evaluate form in a project subprocess.
Calculate vector of strings needed to evaluate form in a project subprocess.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close