[Bese-devel] Re: Loading UCW with ucwctl, cl-launch etc

Luca Capello luca at pca.it
Wed Apr 12 15:34:58 UTC 2006


Hello!

On Wed, 12 Apr 2006 09:46:01 +0200, Luca Capello wrote:
>> I have attached a start.lisp script, which I use for development,
>> and which skips all those extra configuration loading steps.
>
> FWIW, I'm preparing the arnesi patch I proposed at [1]: this
> completely removes the cl-launch dependency when manually loading
> start.lisp, thus letting the following possible:
>
>   $ CONFIGFILE=filename LOGROOT=directory sbcl --load start.lisp

I completely forgot to mention that you can still specify any variable
you want in start.lisp.  As they are defined with `defvar' in
src/default.lisp, if you set them with `setf' in you start.lisp BEFORE
loading `:ucw.default', they still have the value you've specified
(not the one in src/default.lisp).

Actually, I just found a possible error in src/default.lisp: the last
action is to load the `*ucw-config-file*' if present via
`load-config-file'.  The latter calls `load-applications', to prepare
the necessary variables (`*ucw-applications*' and `*ucw-systems*')
reading the ASDF files present in `*ucw-applications-directory*'.  So,
if `*ucw-config-file*' is empty, `load-applications' is not called.

I think the best solution will be the following in src/default.lisp:

  (if *ucw-config-file*
    (load-config-file)
    (load-applications))

Comments?

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060412/d6bd78d5/attachment.sig>


More information about the bese-devel mailing list