logo       

Re: "scala" script and classpaths: msg#00018

lang.scala

Subject: Re: "scala" script and classpaths

On Mon, Feb 06, 2006 at 10:40:51AM -0500, Judson, Ross wrote:
> Seems like we need some sort of "runner" program. The dependency
> information is already in the sbaz description file. If we extended the
> sbaz description file to include a notion of "launches", sbaz could
> create run-files (scripts) for each launch and place them in the bin
> directory. For each installed component, the recursive set of
> dependencies can be generated and set into the run-files.

We took the approach of loading in the dependencies from within Java,
and configuring a ClassLoader appropriately:

http://oss.sygneca.com/javarun

This has been far more reliable than trying to specify the classpath
externally. Particularly so in awkward environments such as Cygwin,
but even on Linux we were previously getting strange problems with
classes apparently randomly failing to load, which we can only
attribute to JVM bugs.

Javarun expects a list of dependencies to be provided in a file one
per line, but it could easily be modified to read sbaz descriptions.

-- Jamie Webb



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise