I had exactly the same problem. It would be nice if we could add
directories/jars to the classpath somehow. I noticed the repl task
does this, but it's hacked into the lein script, which is a shame.

A script plug-in would also require the adaptation of the classpath,
so you could branch leiningen itself and add it to the lein script,
but that's not really neat.

Zef

On Dec 30, 5:51 pm, Saul <shaz...@gmail.com> wrote:
> Hello,
>   I'm moving a small project over from maven built scala to leiningen
> built clojure. One of the features that was available with the maven
> scala plugin was the ability to run scala scripts:
>
> mvn scala:script -DscriptFile=scripts/build_db.scala
>
> This is useful for doing project specific tasks that are too
> specialised for a plugin such as downloading content or sending
> emails. It would be really cool to be able to do something like this
> in leiningen.
>
> One idea I had was to have a leingingen plugin in my src directory
> with the namespace leingingen.builddb and then simply call:
>
> lein builddb
>
> However, as far as I can tell, the classpath of the compiled source
> code is not available to leingingen while building. Another option is
> to develop a script plugin and run a command such as:
>
> lein script scripts/builddb.clj
>
> Is this a feature anybody else would be interested in? Are there any
> views on what the best approach would be?
>
> Thanks in advance
> Saul

-- 
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

Reply via email to