[XPOST]
Hi there JUXT folks :D
We had this in our deps.edn for pack:
:main-opts ["-m" "mach.pack.alpha.one-jar" "-e" "resources"]
It seems the usage has changed but I can't decipher how to get the same behavior, especially around -e (which I have inherited and I guess just adds the files?Well I actually get another error even without -e
Cannot open <target/myjar.jar> as an OutputStream.What are you trying?
-e can be replicated using :aliases
Hey Dominic! This is the call I am trying clojure -T:pack one-jar :jar-file target/myjar.jar
I also skimmed the code but nothing stands out, I did create target
Oh, I see the problem
This is edn, so it should be '"target/myjar.jar"'
Note both quotes are required.
oooooooh nooo
😄
ok I'll try that out 😄
I don't support aliases via the CLI right now, but https://clojure.github.io/tools.deps.alpha/clojure.tools.cli.api-api.html is what it should be modelled after. Feel free to open an issue and/or send a PR, but I'm not likely to get to it for a little while.
Ok no worries and thank you that's fine, this indeed works:
clojure -Srepro -T:pack one-jar :jar-file \"target/appserver.jar\"