开发者

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:

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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜