Fork me on GitHub
#tools-build
<
2021-11-12
>
borkdude10:11:36

For anyone interested. My workaround for the too long classpath: I unpacked (unzipped or copied) entries from the classpath to target/classes and then use that as the sole classpath for the next step.

borkdude14:11:53

It was pretty easy to work around, but I think the @classpath-file.txt approach is worth exploring.

ghadi14:11:45

+1 I'm using the @classpath-file.txt on another project -- not for long args but for other reasons

borkdude14:11:25

@ghadi congrats on the new born one!

borkdude14:11:15

I heard it was coming in the podcast with Sean

Alex Miller (Clojure team)14:11:59

there's an issue in tools.deps for that but not for tools.build

borkdude14:11:00

@alexmiller if you want a repro, I can make you one

borkdude14:11:18

or in fact, I can just point you to the commit that failed

borkdude14:11:34

note that it is a Windows only problem (with regards to the length of the classpath)

Alex Miller (Clojure team)22:11:58

https://github.com/clojure/tools.build v0.6.4 ea76dff is now available • java-command - add control over using classpath file with :use-cp-file (default=:auto) • compile-clj - can now accept java-command passthrough args :java-cmd, :java-opts, :use-cp-file

🚀 1
👍 1
Alex Miller (Clojure team)22:11:35

^^ will automatically use classpath file for long compile-clj command lines on Windows

Alex Miller (Clojure team)23:11:25

https://github.com/clojure/tools.build v0.6.5 a0c3ff6 is now available • git-process - NEW task to run an arbitrary git process and return the output • git-rev-count - updated to use git-process, added :git-command attribute

Alex Miller (Clojure team)23:11:21

there have been several requests for various git tasks, rather than add these as random 1-offs, you can now use the generic git-process task, some examples in the doc https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-git-process

2
👍 1