New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify JAVA command? #11

Closed
Gonzih opened this Issue Jun 7, 2013 · 4 comments

Comments

Projects
None yet
2 participants
@Gonzih

Gonzih commented Jun 7, 2013

Hi, how can I specify java command for lein exec script? I want to run it with drip command instead of java for faster startup.

@kumarshantanu

This comment has been minimized.

Show comment
Hide comment
@kumarshantanu

kumarshantanu Jun 7, 2013

Owner

lein-exec uses the Leiningen script under the hood. So, you can use the drip-leiningen integration to run it via drip: https://github.com/flatland/drip/wiki/Clojure#leiningen

Owner

kumarshantanu commented Jun 7, 2013

lein-exec uses the Leiningen script under the hood. So, you can use the drip-leiningen integration to run it via drip: https://github.com/flatland/drip/wiki/Clojure#leiningen

@Gonzih

This comment has been minimized.

Show comment
Hide comment
@Gonzih

Gonzih Jun 7, 2013

Yes, I know about lein-drip plugin to integrate drip into the lein. But
I want to use drip only with one script, drip sometimes feels buggy so I
don't use it system-wide.

Gonzih commented Jun 7, 2013

Yes, I know about lein-drip plugin to integrate drip into the lein. But
I want to use drip only with one script, drip sometimes feels buggy so I
don't use it system-wide.

@kumarshantanu

This comment has been minimized.

Show comment
Hide comment
@kumarshantanu

kumarshantanu Jun 7, 2013

Owner

I guess you can run

$ LEIN_JAVA_CMD=drip lein exec foo.clj

or just (assuming foo.clj is executable)

$ LEIN_JAVA_CMD=drip ./foo.clj
Owner

kumarshantanu commented Jun 7, 2013

I guess you can run

$ LEIN_JAVA_CMD=drip lein exec foo.clj

or just (assuming foo.clj is executable)

$ LEIN_JAVA_CMD=drip ./foo.clj
@Gonzih

This comment has been minimized.

Show comment
Hide comment
@Gonzih

Gonzih Jun 7, 2013

Yes, it works, thank you.
Also JAVA_CMD variable is working too.

On Fri, 2013-06-07 at 03:08 -0700, Shantanu Kumar wrote:

I guess you can run

$ LEIN_JAVA_CMD=drip lein exec foo.clj
or just (assuming foo.clj is executable)

$ LEIN_JAVA_CMD=drip ./foo.clj

Reply to this email directly or view it on GitHub.

Regards,
Max

Gonzih commented Jun 7, 2013

Yes, it works, thank you.
Also JAVA_CMD variable is working too.

On Fri, 2013-06-07 at 03:08 -0700, Shantanu Kumar wrote:

I guess you can run

$ LEIN_JAVA_CMD=drip lein exec foo.clj
or just (assuming foo.clj is executable)

$ LEIN_JAVA_CMD=drip ./foo.clj

Reply to this email directly or view it on GitHub.

Regards,
Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment