Loading several files into the classpath for Scala interpreter
I'm trying to get the Scala interpreter to load certain files into the classpath automatically (or with as little effort from the user as possible).
What I've managed to do so far:
Have a script that adds all the paths and load it as soon as the interprete开发者_运维百科r starts. The problem with this is that the interpreter insists on printing out the current classpath everytime I add something to it, so, if I have 100 :cp commands in the script file, the screen will get flooded with text. Not good. I can't silence the feedback with :silent and there's no way, AFAIK, to give :cp several paths.
Have a script that calls scala with the proper arguments. I'm not sure, however, that scala -classpath file1:file2:file3 works. It's not ideal, however; I'd still prefer a variation on the first option.
Any suggestions how I could tackle this?
Cheers, Henry
精彩评论