Hello,

Undoubtedly it is not the best solution, but all I do is export a variable
called CLASSPATH
pointing to whichever directories I want to require or load.

# append to your .bashrc script
# Start
CLASSPATH=/home/user/aaa:/home/user/bbb:$CLASSPATH
export CLASSPATH
# End

The only gotcha so far that I've discovered is that you must not include the
namespace in the path.

For example with a file located here:

/home/user/project/foo/bar.clj

If the namespace of that file is (ns foo/bar) then do this:

# correct
CLASSPATH=/home/user/project:$CLASSPATH
export CLASSPATH

# wrong
CLASSPATH=/home/user/project/foo:$CLASSPATH
export CLASSPATH

As for distributing your project all you would need is to put something like
this
into the script that you already use to launch your program.

This is pretty simple but it works for me, just update my CLASSPATH variable
and I'm good to go
and I don't have to specify anything on the command line when I launch a
repl.


Best regards,
agc

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