Hi Arkadiusz, You're right: you should leverage on the existing functionality from Leiningen itself as much as possible. I think you'd want to follow an approach like this:
- Create your Clojure-based web application, include Leiningen itself as a runtime dependency - Generate a project skeleton much like a project template does, you'd add the dependencies you want to add (eg. parkour) on this step and probably set the :main namespace - Replace one or more files from the user's request - Run the uberjar task to produce the jar file you want to send back to users Probably a good place to start looking would be the guide to write plugins for Leiningen: https://github.com/technomancy/leiningen/blob/stable/doc/PLUGINS.md Also worth mentioning: I assume you want to run a service like this in a very controlled environment, it's very likely it will be a function very intensive on the server itself, and check many potential security concerns (eg. how to audit, restricting potentially risky functions/namespaces). Regards, Denis El viernes, 17 de octubre de 2014 18:02:45 UTC-3, Arkadiusz Bicz escribió: > > Hi > > I would like to generate jar from clojure script dynamically from clojure. > I have server which gets clojure scripts from users and server have to > generate jar file from it plus some other dependences like parkour lib. > > Server than send jar for usage by othere servers in different phisical > machines. > > Should I include lein jar in my class path and use its functionality? > > Many Thanks, > > Arkadiusz Bicz > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.