Port of https://github.com/clojure/brew-install/blob/1.11.1/src/main/resources/clojure/install/clojure in Clojure
Port of https://github.com/clojure/brew-install/blob/1.11.1/src/main/resources/clojure/install/clojure in Clojure
(-main & command-line-args)
See help-text
.
In addition
the values of the CLJ_JVM_OPTS
and JAVA_OPTIONS
environment
variables are passed to the java subprocess as command line options
when downloading dependencies and running any other commands
respectively.
if the clojure tools jar cannot be located and the clojure tools
archive is not found, an attempt is made to download the archive
from the official site and extract its contents locally. The archive
is downloaded from this process directly, unless the CLJ_JVM_OPTS
env variable is set and a succesful attempt is made to download the
archive by invoking a java subprocess passing the env variable value
as command line options.
See `help-text`. In addition - the values of the `CLJ_JVM_OPTS` and `JAVA_OPTIONS` environment variables are passed to the java subprocess as command line options when downloading dependencies and running any other commands respectively. - if the clojure tools jar cannot be located and the clojure tools archive is not found, an attempt is made to download the archive from the official site and extract its contents locally. The archive is downloaded from this process directly, unless the `CLJ_JVM_OPTS` env variable is set and a succesful attempt is made to download the archive by invoking a java subprocess passing the env variable value as command line options.
(clojure-tools-download-direct source dest)
Downloads from SOURCE url to DEST file returning true on success.
Downloads from SOURCE url to DEST file returning true on success.
(clojure-tools-jar-download out-dir
java-args-with-clj-jvm-opts
{:keys [debug] :as _opts})
Downloads clojure tools archive in OUT-DIR, if not already there, and extracts in-place the clojure tools jar file and other important files.
The download is attempted directly from this process, unless JAVA-ARGS-WITH-CLJ-JVM-OPTS is set, in which case a java subprocess is created to download the archive passing in its value as command line options.
It calls *exit-fn*
if it cannot download the archive, with
instructions how to manually download it.
Downloads clojure tools archive in OUT-DIR, if not already there, and extracts in-place the clojure tools jar file and other important files. The download is attempted directly from this process, unless JAVA-ARGS-WITH-CLJ-JVM-OPTS is set, in which case a java subprocess is created to download the archive passing in its value as command line options. It calls `*exit-fn*` if it cannot download the archive, with instructions how to manually download it.
(relativize f)
Returns relative path by comparing this with other.
Returns relative path by comparing this with other.
(shell-command args)
(shell-command args {:keys [:to-string?]})
Executes shell command.
Accepts the following options:
:to-string?
: instead of writing to stdoud, write to a string and
return it.
Executes shell command. Accepts the following options: `:to-string?`: instead of writing to stdoud, write to a string and return it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close