This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-20
Channels
- # bangalore-clj (1)
- # beginners (145)
- # boot (8)
- # braid-chat (2)
- # capetown (2)
- # cider (27)
- # cljs-dev (232)
- # cljsrn (30)
- # clojure (223)
- # clojure-boston (1)
- # clojure-dusseldorf (2)
- # clojure-greece (1)
- # clojure-italy (21)
- # clojure-russia (16)
- # clojure-sanfrancisco (13)
- # clojure-spec (33)
- # clojure-uk (56)
- # clojurescript (165)
- # core-async (16)
- # core-logic (5)
- # cursive (14)
- # data-science (2)
- # datavis (2)
- # datomic (49)
- # duct (15)
- # editors (5)
- # emacs (6)
- # fulcro (11)
- # graphql (11)
- # hoplon (8)
- # jobs (4)
- # jobs-discuss (82)
- # jobs-rus (7)
- # leiningen (4)
- # luminus (5)
- # off-topic (90)
- # om (7)
- # om-next (1)
- # parinfer (67)
- # pedestal (34)
- # portkey (46)
- # re-frame (12)
- # reagent (4)
- # reitit (3)
- # remote-jobs (1)
- # ring-swagger (8)
- # shadow-cljs (13)
- # spacemacs (18)
- # specter (6)
- # sql (5)
- # tools-deps (4)
- # unrepl (40)
- # yada (26)
@greg316 the pathing jar would not contain any binaries, only one META-INF/MANIFEST.MF file with a Class-Path: my-long-list-of-local-dependencies
.
This handling of dependencies is part of the java jar file specification and makes java actually add the dependencies to your classpath. The problem would then boil down to creating essentially a text file (the manifest file) with your list of dependencies pointing into your ~/.m2 directory. The only caveat here is that the java jar file specification indicates that the paths should be relative and not absolute (relative to the pathing jar). Absolute paths do work on the jvms (oracle) I tested, but I suspect this is an implementation detail. Still as a hack to get things working this might be one solution to the problem.
also, the command line problem could theoretically occur on any system, on my ubuntu artful instance you get the following from ls:
~> ls -la very-long-argument-list
bash: /bin/ls: Argument list too long
if your arglist is long enough. Though admittedly I have a hard time seeing how a classpath for a project could get to ~2MB which is the limit on my machine. On the other hand, being a programmer and afflicted with a defensive mindset with a healthy sprinkling of ocd , I think it would be nice to have an execution method which is not based on assumptions about max limits like the ARG_MAX example here...they obviously still restrict some builds