|
Re: "scala" script and classpaths: msg#00018lang.scala
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> |
|---|---|---|
| Previous by Date: | Re: new plugin problems: 00018, robert kuzelj |
|---|---|
| Next by Date: | NonNull, scala.reflect: 00018, Judson, Ross |
| Previous by Thread: | RE: "scala" script and classpathsi: 00018, Judson, Ross |
| Next by Thread: | Re: "scala" script and classpaths: 00018, Lex Spoon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |